88. mac安装CUDA与cuDNN

2019-12-13  本文已影响0人  十里江城

没有装GPU的状态:


your CUDA directory path is referred to as /usr/local/cuda/
your cuDNN directory path is referred to as <installpath>
Navigate to your <installpath> directory containing cuDNN.
Unzip the cuDNN package.
$ tar -xzvf cudnn-9.0-osx-x64-v7.tgz
Copy the following files into the CUDA Toolkit directory, and change the file permissions.
$ sudo cp cuda/include/cudnn.h /usr/local/cuda/include
$ sudo cp cuda/lib/libcudnn* /usr/local/cuda/lib
$ sudo chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda/lib/libcudnn*
Set the following environment variables to point to where cuDNN is located.
$ export  DYLD_LIBRARY_PATH=/usr/local/cuda/lib:$DYLD_LIBRARY_PATH
$ export PATH=$PATH:/usr/local/cuda/bin

查看cuda版本:


Refer:
https://blog.csdn.net/ignoreyou/article/details/85132738
https://blog.csdn.net/ignoreyou/article/details/85132738

上一篇 下一篇

猜你喜欢

热点阅读