-
Notifications
You must be signed in to change notification settings - Fork 438
Compiling with CUDA 5
phvu edited this page Mar 13, 2013
·
2 revisions
CUDA 5 came up with many differences from the older versions. This page describes the minimal steps in order to compile deepnet
with CUDA 5. Probably it is not the optimal or canonical way, but following those steps is sufficient to make it work on Debian 32 bit.
Open cudamat/Makefile and add a new line at the beginning of the file:
CUDA_LIB = '/usr/local/cuda-5.0/lib'
This is to specify the path to CUDA 5 library.
- Find and replace
cutil_inline.h
byhelper_cuda.h
in all C++ files. - Find and replace
cutilCheckMsg
bygetLastCudaError
in all C++ files. The reason is in CUDA 5, thecutil
library (which is not intended to be used outside NVIDIA SDK sample projects) has been re-organized in some helper classes. - Add
#include <helper_image.h>
intoconv_util.cuh
andnvmatrix.cuh
. This is forMIN
andMAX
macros. - Optionally...
T.B.D.