{"action":"closed","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/3826","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/3826/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/3826/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/3826/events","html_url":"https://github.com/tensorflow/tensorflow/issues/3826","id":171247349,"number":3826,"title":"GPU-enabled Mac build of TensorFlow version 0.10.0rc0-py2 was compiled against cuDNN v5","user":{"login":"dtrebbien","id":277166,"avatar_url":"https://avatars.githubusercontent.com/u/277166?v=3","gravatar_id":"","url":"https://api.github.com/users/dtrebbien","html_url":"https://github.com/dtrebbien","followers_url":"https://api.github.com/users/dtrebbien/followers","following_url":"https://api.github.com/users/dtrebbien/following{/other_user}","gists_url":"https://api.github.com/users/dtrebbien/gists{/gist_id}","starred_url":"https://api.github.com/users/dtrebbien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtrebbien/subscriptions","organizations_url":"https://api.github.com/users/dtrebbien/orgs","repos_url":"https://api.github.com/users/dtrebbien/repos","events_url":"https://api.github.com/users/dtrebbien/events{/privacy}","received_events_url":"https://api.github.com/users/dtrebbien/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"yifeif","id":1192265,"avatar_url":"https://avatars.githubusercontent.com/u/1192265?v=3","gravatar_id":"","url":"https://api.github.com/users/yifeif","html_url":"https://github.com/yifeif","followers_url":"https://api.github.com/users/yifeif/followers","following_url":"https://api.github.com/users/yifeif/following{/other_user}","gists_url":"https://api.github.com/users/yifeif/gists{/gist_id}","starred_url":"https://api.github.com/users/yifeif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yifeif/subscriptions","organizations_url":"https://api.github.com/users/yifeif/orgs","repos_url":"https://api.github.com/users/yifeif/repos","events_url":"https://api.github.com/users/yifeif/events{/privacy}","received_events_url":"https://api.github.com/users/yifeif/received_events","type":"User","site_admin":false},"assignees":[{"login":"yifeif","id":1192265,"avatar_url":"https://avatars.githubusercontent.com/u/1192265?v=3","gravatar_id":"","url":"https://api.github.com/users/yifeif","html_url":"https://github.com/yifeif","followers_url":"https://api.github.com/users/yifeif/followers","following_url":"https://api.github.com/users/yifeif/following{/other_user}","gists_url":"https://api.github.com/users/yifeif/gists{/gist_id}","starred_url":"https://api.github.com/users/yifeif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yifeif/subscriptions","organizations_url":"https://api.github.com/users/yifeif/orgs","repos_url":"https://api.github.com/users/yifeif/repos","events_url":"https://api.github.com/users/yifeif/events{/privacy}","received_events_url":"https://api.github.com/users/yifeif/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2016-08-15T19:51:56Z","updated_at":"2016-09-01T03:09:20Z","closed_at":"2016-09-01T03:09:20Z","body":"### Environment info\r\nOperating System: OS X 'El Capitan' Version 10.11.6 (15G31)\r\n\r\nInstalled version of CUDA and cuDNN: cuda_7.5.27_mac, cudnn-7.5-osx-x64-v5.0-ga (I explain why I am using cuDNN v5 rather than cuDNN v4 below.)\r\n(please attach the output of `ls -l /path/to/cuda/lib/libcud*`):\r\n\r\n<pre>\r\nlrwxr-xr-x@ 1 root  wheel    50 Apr 13 02:03 libcublas.7.5.dylib -> /Developer/NVIDIA/CUDA-7.5/lib/libcublas.7.5.dylib\r\nlrwxr-xr-x@ 1 root  wheel    46 Apr 13 02:03 libcublas.dylib -> /Developer/NVIDIA/CUDA-7.5/lib/libcublas.dylib\r\nlrwxr-xr-x@ 1 root  wheel    49 Apr 13 02:03 libcublas_device.a -> /Developer/NVIDIA/CUDA-7.5/lib/libcublas_device.a\r\nlrwxr-xr-x@ 1 root  wheel    49 Apr 13 02:03 libcublas_static.a -> /Developer/NVIDIA/CUDA-7.5/lib/libcublas_static.a\r\n-rwxr-xr-x  2 root  wheel  8280 May 11 04:59 libcuda.1.dylib\r\n-rwxr-xr-x  2 root  wheel  8280 May 11 04:59 libcuda.dylib\r\nlrwxr-xr-x@ 1 root  wheel    45 Apr 13 02:03 libcudadevrt.a -> /Developer/NVIDIA/CUDA-7.5/lib/libcudadevrt.a\r\nlrwxr-xr-x@ 1 root  wheel    50 Apr 13 02:03 libcudart.7.5.dylib -> /Developer/NVIDIA/CUDA-7.5/lib/libcudart.7.5.dylib\r\nlrwxr-xr-x@ 1 root  wheel    46 Apr 13 02:03 libcudart.dylib -> /Developer/NVIDIA/CUDA-7.5/lib/libcudart.dylib\r\nlrwxr-xr-x@ 1 root  wheel    49 Apr 13 02:03 libcudart_static.a -> /Developer/NVIDIA/CUDA-7.5/lib/libcudart_static.a\r\nlrwxr-xr-x  1 root  admin    47 Aug 15 14:24 libcudnn.5.dylib -> /Developer/NVIDIA/CUDA-7.5/lib/libcudnn.5.dylib\r\nlrwxr-xr-x  1 root  admin    45 Aug 15 14:24 libcudnn.dylib -> /Developer/NVIDIA/CUDA-7.5/lib/libcudnn.dylib\r\nlrwxr-xr-x  1 root  admin    48 Aug 15 14:24 libcudnn_static.a -> /Developer/NVIDIA/CUDA-7.5/lib/libcudnn_static.a\r\n</pre>\r\n\r\n`libcuda.1.dylib` is a hard link to `libcuda.dylib` per [this comment](https://github.com/tensorflow/tensorflow/issues/2940#issuecomment-238952433).\r\n\r\nIf installed from binary pip package, provide:\r\n\r\n1. Which pip package you installed: `export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/gpu/tensorflow-0.10.0rc0-py2-none-any.whl`\r\n2. The output from `python -c \"import tensorflow; print(tensorflow.__version__)\"`: 0.10.0rc0\r\n\r\nIf installed from source, provide \r\n\r\n1. The commit hash (`git rev-parse HEAD`)\r\n2. The output of `bazel version`\r\n\r\n### Steps to reproduce\r\n1. Set up TensorFlow according to the instructions at https://www.tensorflow.org/versions/r0.10/get_started/os_setup.html#prepare_environment_for_mac_os_x\r\n\r\n    In particular, the page says to install cuDNN v4, which is labeled \"cuDNN v4 (Feb 10, 2016), for CUDA 7.0 and later.\" on the [cuDNN Download page](https://developer.nvidia.com/rdp/cudnn-download).\r\n2. Test the installation by running:\r\n\r\n    `python -m tensorflow.models.image.mnist.convolutional`\r\n\r\n    You should see:\r\n\r\n    > E tensorflow/stream_executor/cuda/cuda_dnn.cc:354] could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR  \r\nE tensorflow/stream_executor/cuda/cuda_dnn.cc:321] could not destroy cudnn handle: CUDNN_STATUS_BAD_PARAM\r\n3. Now run the test under `cuda-memcheck`:\r\n\r\n    `cuda-memcheck python -m tensorflow.models.image.mnist.convolutional`\r\n\r\n    You should see:\r\n\r\n    > E tensorflow/stream_executor/cuda/cuda_dnn.cc:347] Loaded runtime CuDNN library: 4007 (compatibility version 4000) but source was compiled with 5005 (compatibility version 5000).  If using a binary install, upgrade your CuDNN library to match.  If building from sources, make sure the library loaded at runtime matches a compatible version specified during compile configuration.\r\n\r\n### What have you tried?\r\nUninstalling cuDNN v4 and installing cuDNN v5 (labeled \"cuDNN v5 (May 12, 2016), for CUDA 7.5\" on the cuDNN Download page) fixes the issue.\r\n\r\nI think that either TensorFlow should be built with cuDNN v4 or the installation instructions should be corrected to specify that cuDNN v5 should be installed."}}
{"actor":{"display_login":"yifeif"}}