{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/875","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/875/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/875/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/875/events","html_url":"https://github.com/tensorflow/tensorflow/issues/875","id":128476855,"number":875,"title":"GPU device not found on OSX","user":{"login":"maxgillett","id":1622077,"avatar_url":"https://avatars.githubusercontent.com/u/1622077?v=3","gravatar_id":"","url":"https://api.github.com/users/maxgillett","html_url":"https://github.com/maxgillett","followers_url":"https://api.github.com/users/maxgillett/followers","following_url":"https://api.github.com/users/maxgillett/following{/other_user}","gists_url":"https://api.github.com/users/maxgillett/gists{/gist_id}","starred_url":"https://api.github.com/users/maxgillett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxgillett/subscriptions","organizations_url":"https://api.github.com/users/maxgillett/orgs","repos_url":"https://api.github.com/users/maxgillett/repos","events_url":"https://api.github.com/users/maxgillett/events{/privacy}","received_events_url":"https://api.github.com/users/maxgillett/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-25T07:11:34Z","updated_at":"2016-01-25T08:31:57Z","closed_at":null,"body":"Hello,\r\n\r\nI'm trying to install TensorFlow with GPU support for a CUDA Capability 3.0 device. I have followed the instructions found here: https://gist.github.com/Mistobaan/dd32287eeb6859c6668d, and everything compiles without error, but TensorFlow doesn't recognize my GPU device. The steps that I'm taking are below, as is the error output.\r\n\r\nI've modified bazel to use gcc-4.8, so these are the commands I'm running:\r\n\r\n    bazel build -c opt --config=cuda //tensorflow/cc:tutorials_example_trainer ---crosstool_top=//tools/cpp:toolchain\r\n    bazel build -c opt --config=cuda //tensorflow/tools/pip_package:build_pip_package --crosstool_top=//tools/cpp:toolchain\r\n\r\nRunning the example with:\r\n\r\n    bazel-bin/tensorflow/cc/tutorials_example_trainer --use_gpu\r\n\r\nproduces the following output:\r\n\r\n    F tensorflow/cc/tutorials/example_trainer.cc:118] Check failed: ::tensorflow::Status::OK() == (session->Run({{\"x\", x}}, {\"y:0\", \"y_normalized:0\"}, {}, &outputs)) (OK vs. Invalid argument: Cannot assign a device to node 'Const/_2': Could not satisfy explicit device specification '/gpu:0'\r\n         [[Node: Const/_2 = Const[dtype=DT_INT32, value=Tensor<type: int32 shape: [] values: 0>, _device=\"/gpu:0\"]()]])\r\n    F tensorflow/cc/tutorials/example_trainer.cc:118] Check failed: ::tensorflow::Status::OK() == (session->Run({{\"x\", x}}, {\"y:0\", \"y_normalized:0\"}, {}, &outputs)) (OK vs. Invalid argument: Cannot assign a device to node 'Const/_2': Could not satisfy explicit device specification '/gpu:0'\r\n         [[Node: Const/_2 = Const[dtype=DT_INT32, value=Tensor<type: in\r\n\r\nI can also confirm that after installing the pip package and running a test script, no devices are found.\r\n\r\nA few things to note:\r\n- Running deviceQuery confirms that a CUDA device (Device 0: GeForce GT 650M) is found. \r\n- I've made sure to run bazel clean before compiling, and have tried compiling using sudo just to see if this was a permissions issue.\r\n\r\nThanks in advance for your help. "},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/174436099","html_url":"https://github.com/tensorflow/tensorflow/issues/875#issuecomment-174436099","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/875","id":174436099,"user":{"login":"maxgillett","id":1622077,"avatar_url":"https://avatars.githubusercontent.com/u/1622077?v=3","gravatar_id":"","url":"https://api.github.com/users/maxgillett","html_url":"https://github.com/maxgillett","followers_url":"https://api.github.com/users/maxgillett/followers","following_url":"https://api.github.com/users/maxgillett/following{/other_user}","gists_url":"https://api.github.com/users/maxgillett/gists{/gist_id}","starred_url":"https://api.github.com/users/maxgillett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxgillett/subscriptions","organizations_url":"https://api.github.com/users/maxgillett/orgs","repos_url":"https://api.github.com/users/maxgillett/repos","events_url":"https://api.github.com/users/maxgillett/events{/privacy}","received_events_url":"https://api.github.com/users/maxgillett/received_events","type":"User","site_admin":false},"created_at":"2016-01-25T08:31:57Z","updated_at":"2016-01-25T08:31:57Z","body":"It turns out that I was actually compiling with gcc-5, not gcc-4.8. From what I can tell CUDA doesn't support version 5, so this might be the problem. \r\n\r\nI'm trying now to compile with 4.8, but I'm getting this error:\r\n    /var/tmp//cccfsYPu.s:2774:expecting string instruction after `rep'"}}