leader

Cuda

Image Description
View Markdown

These are my notes as I get started with Cuda. I'll try to follow the Even Easier Introduction to CUDA. I'm running Ubuntu 16.04.

Table of Contents

embedded

Install

sudo apt install nvidia-cuda-toolkit

Compile

nvcc add.cu -o add_cuda

./add_cuda

segmentation fault... ugh.

Super Windows -> Software & Updates -> Additional Drivers

Just going to here appears to have loaded the Nvidia drivers. Reboot.

Run Profiler


nvprof ./add_cuda
No kernels were profiled.

Check version. The examples may need Version 8, but I'm at 7.5.


nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2015 NVIDIA Corporation
Built on Tue_Aug_11_14:27:32_CDT_2015
Cuda compilation tools, release 7.5, V7.5.17

Download Latest Cuda

 https://developer.nvidia.com/cuda-downloads

Remove Old version of Cuda and Install new version


sudo apt-get purge nvidia-cuda*
sudo sh cuda_7.5.18_linux.run --override