{"action":"closed","issue":{"url":"https://api.github.com/repos/google/deepvariant/issues/81","repository_url":"https://api.github.com/repos/google/deepvariant","labels_url":"https://api.github.com/repos/google/deepvariant/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/google/deepvariant/issues/81/comments","events_url":"https://api.github.com/repos/google/deepvariant/issues/81/events","html_url":"https://github.com/google/deepvariant/issues/81","id":335135443,"node_id":"MDU6SXNzdWUzMzUxMzU0NDM=","number":81,"title":"How to Enable the GPU in local Docker run","user":{"login":"JoelDaon","id":18702415,"node_id":"MDQ6VXNlcjE4NzAyNDE1","avatar_url":"https://avatars0.githubusercontent.com/u/18702415?v=4","gravatar_id":"","url":"https://api.github.com/users/JoelDaon","html_url":"https://github.com/JoelDaon","followers_url":"https://api.github.com/users/JoelDaon/followers","following_url":"https://api.github.com/users/JoelDaon/following{/other_user}","gists_url":"https://api.github.com/users/JoelDaon/gists{/gist_id}","starred_url":"https://api.github.com/users/JoelDaon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoelDaon/subscriptions","organizations_url":"https://api.github.com/users/JoelDaon/orgs","repos_url":"https://api.github.com/users/JoelDaon/repos","events_url":"https://api.github.com/users/JoelDaon/events{/privacy}","received_events_url":"https://api.github.com/users/JoelDaon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-06-23T22:28:24Z","updated_at":"2018-09-05T12:04:39Z","closed_at":"2018-09-05T12:04:39Z","author_association":"NONE","body":"I have the problem that I can't enable the GPU when I run the Docker. I am using a NVIDIA P100.\r\n\r\nnvidia-docker  run --runtime=nvidia -e NVIDIA_VISIBLE_DEVICES=all -it ...\r\n\r\nThis is how I call call_variant \r\n`(time /opt/deepvariant/bin/call_variants  --outfile \"${CALL_VARIANTS_OUTPUT}\" --examples \"${EXAMPLES}\" --checkpoint \"${MODEL}\"  --execution_hardware accelerator) >\"${LOG_DIR}/call_variants.log\" 2>&1`\r\n\r\nThe output from the call_variant log: \r\n\r\n> 2018-06-23 22:47:42.743518: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA\r\nWARNING: Logging before flag parsing goes to stderr.\r\nI0623 22:47:43.324297 140315677046528 call_variants.py:329] Initializing model from /dv2/models/DeepVariant-inception_v3-0.6.0+cl-191676894.data-wes_standard/model.ckpt\r\nINFO:tensorflow:Restoring parameters from /dv2/models/DeepVariant-inception_v3-0.6.0+cl-191676894.data-wes_standard/model.ckpt\r\nI0623 22:47:44.415543 140315677046528 tf_logging.py:82] Restoring parameters from /dv2/models/DeepVariant-inception_v3-0.6.0+cl-191676894.data-wes_standard/model.ckpt\r\nTraceback (most recent call last):\r\n  File \"/tmp/Bazel.runfiles_dEDnzG/runfiles/com_google_deepvariant/deepvariant/call_variants.py\", line 388, in <module>\r\n    tf.app.run()\r\n  File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py\", line 48, in run\r\n    _sys.exit(main(_sys.argv[:1] + flags_passthrough))\r\n  File \"/tmp/Bazel.runfiles_dEDnzG/runfiles/com_google_deepvariant/deepvariant/call_variants.py\", line 379, in main\r\n    batch_size=FLAGS.batch_size)\r\n  File \"/tmp/Bazel.runfiles_dEDnzG/runfiles/com_google_deepvariant/deepvariant/call_variants.py\", line 335, in call_variants\r\n    'execution_hardware is set to accelerator, but no accelerator '\r\n__main__.ExecutionHardwareError: execution_hardware is set to accelerator, but no accelerator was found\r\nreal\t0m6.241s\r\nuser\t0m6.872s\r\nsys\t0m2.256s\r\n\r\nWhen I run the docker and check for the GPU with nvidia-smi it works, here the output\r\n\r\n> root@4811225a908b:/# nvidia-smi\r\nSat Jun 23 22:53:46 2018\r\n+-----------------------------------------------------------------------------+\r\n| NVIDIA-SMI 396.26                 Driver Version: 396.26                    |\r\n|-------------------------------+----------------------+----------------------+\r\n| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |\r\n| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |\r\n|===============================+======================+======================|\r\n|   0  Tesla P100-PCIE...  Off  | 00000000:00:05.0 Off |                    0 |\r\n| N/A   29C    P0    29W / 250W |      0MiB / 16280MiB |      0%      Default |\r\n+-------------------------------+----------------------+----------------------+\r\n\r\n+-----------------------------------------------------------------------------+\r\n| Processes:                                                       GPU Memory |\r\n|  GPU       PID   Type   Process name                             Usage      |\r\n|=============================================================================|\r\n|  No running processes found                                                 |\r\n+-----------------------------------------------------------------------------+\r\n"}}
{"actor":{"display_login":"pichuan"}}