Skip to content

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.

Compiling cudamat

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.

Compiling cudamat_conv

Changes in C++ CUDA code

  • Find and replace cutil_inline.h by helper_cuda.h in all C++ files.
  • Find and replace cutilCheckMsg by getLastCudaError in all C++ files. The reason is in CUDA 5, the cutil 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> into conv_util.cuh and nvmatrix.cuh. This is for MIN and MAX macros.
  • Optionally...

Changes in Makefiles

T.B.D.

Clone this wiki locally