bixed bug in cudaSafeCall

This commit is contained in:
Anatoly Baksheev
2010-07-15 15:32:17 +00:00
parent 55b1e9cbc7
commit b8535d1726
2 changed files with 8 additions and 10 deletions

View File

@@ -65,7 +65,7 @@ namespace cv
}
#ifdef __CUDACC__
#define cudaSafeCall(err) { if( cudaSuccess != err) cv::gpu::error(cudaGetErrorString(err), __FILE__, __LINE__); }
#define cudaSafeCall(expr) { cudaError_t err = expr; if( cudaSuccess != err) cv::gpu::error(cudaGetErrorString(err), __FILE__, __LINE__); }
#endif
#endif /* __OPENCV_CUDA_SHARED_HPP__ */