-
安装环境与cuda及cuda驱动版本(注意足够磁盘空间):
安装提示:成功在mac上安装cuda
没有装GPU的状态:
- 安装cudnn:
官方教程:
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
网友评论