Skip to content

Compile under linux

Cyprien Bosserelle edited this page Nov 29, 2018 · 8 revisions

Make sure you have latest cuda, g++ and netcdf libraries installed

e.g.

sudo apt-get install nvidia-cuda-dev
sudo apt-get install g++
sudo apt-get install libnetcdf-dev

Also make sure the driver being used is the NVidia driver!

do a quick comand line test to see if nvcc (cuda compiler) is available from here If not, You may need to modify the cuda path in the makefile (line 155) NVCC := nvcc -ccbin $(HOST_COMPILER)

The code can compile for multiple GPU architecture but later compiler do not support old GPU (2.0 is no longer supported) remove unsupported architecture in line 213 of the makefile

then just type make

many warning will show up but that is OK.

Clone this wiki locally