35 #ifndef __CUV_GENERAL_HPP__
36 #define __CUV_GENERAL_HPP__
38 #ifndef CUDA_TEST_DEVICE
39 # define CUDA_TEST_DEVICE 0
42 #define MAX_GRID_SIZE 65535
46 # define cuvSafeCall(X) \
47 if(strcmp(#X,"cudaThreadSynchronize()")!=0){ X; cuv::checkCudaError(#X); }
49 # define cuvSafeCall(X) X; cuv::checkCudaError(#X);
60 #define cuvAssert(X) \
61 if(!(X)){ cuv::cuvAssertFailed(#X); }
74 #define DBG(X) #X <<":"<<(X)<<" "