http://blog.michinari-nukazawa.com/2017/04/install-cuda80-in-ubuntu1604-amd64-lts.html
の続き。
Web上のCUDA8.0インストール情報、たぶん記憶のママで書いているものが多いのでは。
なのでhistoryを公開します。
無駄なものが滅茶苦茶入っていますし、万が一historyから何か抜けてたら無意味ですが、まあ記憶で書いてる情報よりはマシだと思います。
```
955 2017-04-20 23:00:17 vim ~/.bashrc
956 2017-04-20 22:36:19 virtualbox &
957 2017-04-20 22:38:14 sudo apt-get update && sudo apt-get dist-upgrade -y
958 2017-04-20 22:47:37 sudo apt install linux-generic
959 2017-04-20 22:58:06 sudo dpkg -i Downloads/cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64.deb
960 2017-04-20 22:58:36 sudo apt-get update && sudo apt-get dist-upgrade -y
961 2017-04-20 22:58:54 sudo apt-get install cuda
962 2017-04-20 23:10:25 cuda-install-samples-8.0.sh cuda
963 2017-04-20 23:10:28 ls
964 2017-04-20 23:10:32 cd cuda/
965 2017-04-20 23:10:38 cd NVIDIA_CUDA-8.0_Samples/
966 2017-04-20 23:10:51 cat /proc/driver/nvidia/version
967 2017-04-20 23:11:04 make
968 2017-04-20 23:18:05 sudo apt-get install freeglut3-dev
969 2017-04-20 23:18:10 make
970 2017-04-20 23:19:39 sudo apt-get install mesa-common-dev
971 2017-04-20 23:20:02 ls bin/
972 2017-04-20 23:20:03 ls bin/x86_64/
973 2017-04-20 23:20:05 ls bin/x86_64/linux/
974 2017-04-20 23:20:06 ls bin/x86_64/linux/release/
975 2017-04-20 23:20:08 ls bin/x86_64/linux/release/deviceQuery
976 2017-04-20 23:20:10 bin/x86_64/linux/release/deviceQuery
977 2017-04-20 23:21:23 find / -name libnvcuvid.*
978 2017-04-20 23:21:31 ls /usr/local
979 2017-04-20 23:21:37 ls /usr/local/cuda
980 2017-04-20 23:21:46 ls /usr/local/cuda/bin/
981 2017-04-20 23:21:54 env
982 2017-04-20 23:22:01 env | grep PATH
983 2017-04-20 23:22:30 ls /usr/local/cuda-8.0/lib64
984 2017-04-20 23:27:04 make
985 2017-04-20 23:28:29 ls /usr/local
986 2017-04-20 23:28:31 ls /usr/lib
987 2017-04-20 23:28:44 ls /usr/lib/nvidia
988 2017-04-20 23:28:48 ls /usr/lib/nvidia-375
989 2017-04-20 23:29:35 vim ~/.bashrc
990 2017-04-20 23:30:52 source ~/.bashrc
991 2017-04-20 23:30:55 make
992 2017-04-20 23:32:00 vim ~/.bashrc
993 2017-04-20 23:37:07 cd cuda/NVIDIA_CUDA-8.0_Samples/
994 2017-04-20 23:37:09 make
995 2017-04-20 23:37:51 vim ~/.bashrc
996 2017-04-20 23:38:00 source ~/.bashrc
997 2017-04-20 23:38:02 make
998 2017-04-21 19:40:40 exit
999 2017-04-21 21:01:41 gedit .bashrc
1000 2017-04-21 21:45:50 history | less
1001 2017-04-21 21:50:58 history > hits.txt
```
なお~/.bashrc追記内容。
```
export PATH=/usr/local/cuda-8.0/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
export LD_LIBRARY_PATH=/usr/lib/nvidia-375:${LD_LIBRARY_PATH}
export LIBRARY_PATH=/usr/lib/nvidia-375:${LIBRARY_PATH}
```
以上です。
0 件のコメント:
コメントを投稿