jc.jang

NVIDIA graphic driver, CUDA 8.0 , cuDNN 5.1, tensorflow-gpu 0.12, 본문

카테고리 없음

NVIDIA graphic driver, CUDA 8.0 , cuDNN 5.1, tensorflow-gpu 0.12,

jangstory 2018. 4. 24. 18:03

간단하게 환경 설정만 하려면 밑에 더보기를 열어서 보시면 됩니다.





여기 링크에 https://github.com/learningtitans/isbi2017-part3 있는 코드를 실행하기 위해 환경 설정을 해야한다.


바야흐로 지금은 2018년...  TensorFlow 1.7 버전이 출시 되었지만 위 프로젝트는 0.12-gpu 버전으로 작성 되었다.


따라서 나는 0.12 버전을 설치해야한다.


환경 설정

운영체제 - Ubuntu 16.04 LTS

그래픽 카드 - GeForce GTX 1080 Ti

그래픽 드라이버 - 390.48

CUDA - 8.0

cuDNN - 5.1

TensorFlow - 0.12 gpu


최신에 릴리즈된 버전들은 서로서로 호환이 가능하기 때문에 최신 버전을 설치하면 되고 글도 많이 있다. 하지만 예전 버전을 설치할 때는 참고할게 없다. 나도 구글링해가면서 겨우 설치했다.


길치들의 특징이 이 길이 아닌걸 알면서도 걷는건데 환경 설정하고 있는 나를 보는 것 같았다.

0.12 버전을 설치하면서 삽질을 했는데 CUDA와 cuDNN의 호환성을 전혀 고려하지 않아서 그랬다.


https://github.com/tensorflow/tensorflow/blob/v0.12.0/RELEASE.md

TensorFlow Release note를 보면, 

  • TensorFlow now builds and runs on Microsoft Windows (tested on Windows 10, Windows 7, and Windows Server 2016). Supported languages include Python (via a pip package) and C++. CUDA 8.0 and cuDNN 5.1 are supported for GPU acceleration. Known limitations include: It is not currently possible to load a custom op library. The GCS and HDFS file systems are not currently supported. The following ops are not currently implemented: Dequantize, QuantizeAndDequantize, QuantizedAvgPool, QuantizedBatchNomWithGlobalNormalization, QuantizedBiasAdd, QuantizedConcat, QuantizedConv2D, QuantizedMatmul, QuantizedMaxPool, QuantizeDownAndShrinkRange, QuantizedRelu, QuantizedRelu6, QuantizedReshape, QuantizeV2, RequantizationRange, and Requantize.

CUDA 8.0, cuDNN5.1 버전을 지원한다고 나와있다.

근데 나는 최신 버전이면 다 호환이 되는 줄 알고 CUDA 9.1 cuDNN 7.1을 설치했다.

사실 최신 버전이면 다 되는지 안되는지 모르겠으나 CUDA 9.1, CUDA 9.0버전으로 했을 때도 에러가 났다. 아 무슨 에러인지도 적어 놀걸


혹시나 TensorFlow 0.12 버전이 아니라 다른 버전을 설치하려면 release note를 참고해서 CUDA, cuDNN 버전 호환을 반드시 체크하고 하세요~


Comments