NVIDIA - noobient/noobuntu GitHub Wiki
To install just the NVIDIA driver:
sudo ansible-playbook ansible/nvidia.yml
To install the NVIDIA driver and CUDA as well:
sudo ansible-playbook ansible/cuda.yml
Testing
simpleVulkan
is a great sample to test GPU, compiler, and CUDA functionality, as it involves many components to be set up correctly.
cp -R /usr/local/cuda/samples/2_Graphics/simpleVulkan ~
cd ~/simpleVulkan
sed -Ei 's@(^INCLUDES\s*:=\s*-I).*(/common/inc$)@\1$(CUDA_PATH)/samples/\2@' Makefile
sed -i 's@.*$(EXEC).*../../bin.*@@' Makefile
make
./simpleVulkan