cutil.h and cutil_inline_runtime.h
are missingStereo.cu fails with errors like
cutil.h and cutil_inline_runtime.h
are missing
Others have reported SDK CUDA 5 problems too.
Makefile
replace SDK include path with samples include path.
SDK_INC_PATH = $(CUDA_PATH)/SDK/CUDALibraries/common/incwith
SDK_INC_PATH = $(CUDA_PATH)/samples/common/inc
helper*
include files.
#include <cutil.h> #include <cutil_inline_runtime.h>with
#include <helper_cuda.h> #include <helper_timer.h>
cutil* and cut* calls and macros
with SDK calls.
CUDA_SAFE_CALL with checkCudaErrors
CUDA_SAFE_CALL(cudaMallocPitch((void**)&g_disparityLeft,&g_floatDispPitch,w*sizeof(float),h));
checkCudaErrors(cudaMallocPitch((void**)&g_disparityLeft,&g_floatDispPitch,w*sizeof(float),h));
cutilSafeCall with checkCudaErrors
cut*Timer with sdk*Timer
unsigned int timer;
CUT_SAFE_CALL(cutStartTimer(timer));
.
.
.
CUT_SAFE_CALL(cutStopTimer(timer));
float retval = cutGetTimerValue(timer);
Could be rewritten:
StopWatchInterface *timer = NULL;
sdkCreateTimer(&timer);
sdkStartTimer(&timer);
.
.
.
sdkStopTimer(&timer);
float retval = sdkGetTimerValue(&timer);
helper*.h.
These C include files
are not supplied with earlier versions of CUDA.