This role installs and configures NVIDIA CUDA 8.0 library, used for GPU computations. Supports Ubuntu 14.04 and 16.04.
ansible-galaxy install slothai.cuda
Target machine should have proper gcc version. Current role does not handle it at the moment.
Check CUDA:
$ lspci | grep -i nvidia
02:00.0 3D controller: NVIDIA Corporation GK107M [GeForce GT 750M] (rev a1)
See also:
- Cuda 8 performance overview: http://developer.download.nvidia.com/compute/cuda/compute-docs/cuda-performance-report.pdf
- Detailed installation: http://docs.nvidia.com/cuda/cuda-installation-guide-linux/#axzz4cxFv4kEp
- Checksum file: http://developer.download.nvidia.com/compute/cuda/8.0/secure/Prod2/docs/sidebar/md5sum.txt?autho=1491026907_cc5ed9508e9d89f15c5eb34a1d8a87f7&file=md5sum.txt
- Verify the installation official: http://docs.nvidia.com/cuda/cuda-installation-guide-linux/#verify-installation
- Verify the installation: https://xcat-docs.readthedocs.io/en/stable/advanced/gpu/nvidia/verify_cuda_install.html
- Test cuda is in path: echo "$PATH" | grep -q /usr/local/cuda-8.0/bin && echo "found it"
command -v nvcc >/dev/null 2>&1
LD_LIBRARY_PATH
notes: https://unix.stackexchange.com/questions/46614/how-to-export-ld-library-path-to-all-users-and-system-services#answer-46620- Recommended steps: http://docs.nvidia.com/cuda/cuda-installation-guide-linux/#recommended-post
MIT