Skip to content

Instantly share code, notes, and snippets.

@weilinear
Created December 1, 2012 07:21
Show Gist options
  • Save weilinear/4180952 to your computer and use it in GitHub Desktop.
Save weilinear/4180952 to your computer and use it in GitHub Desktop.
cutil_inline.h

The original great cuda-convnet package is here: http://code.google.com/p/cuda-convnet/

To build the convnet using CUDA 5:

  1. Change the build.sh to use correct pathes. For cuda SDK path, use the path contains file helper_cuda.h.
  2. Make a dummyinclude folder, and put the cutil_inline.h into that folder.
  3. For MAKEFILE, include the dummyinclude file.

Try ./build.sh and see whether that can compiles.

The functionality is not fully tested and this can just compiles the package.

/*
Dummy Includes for cutil_inline.h
Wei LI <kuantkid <at> gmail <dot> com>
*/
#include <helper_cuda.h>
#define cutilCheckMsg(a) getLastCudaError(a)
#define cutGetMaxGflopsDeviceId() gpuGetMaxGflopsDeviceId()
#define MIN(a,b) (a) < (b) ? (a) : (b)
# Change the include line in Makefile
INCLUDES := -DCUDA_5 -I$(PYTHON_INCLUDE_PATH) -I$(NUMPY_INCLUDE_PATH) -I$(CUDA_SDK_PATH) -I./include -I./include/common -I./include/cudaconv2 -I./include/nvmatrix -I./dummyinclude/
@geraldstanje
Copy link

did you get it installed with cuda 6 on osx?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment