OpenFPM_pdata  1.1.0
Project that contain the implementation of distributed structures
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Pages
cuda_macro.h
1 /*
2  * cuda_macro.h
3  *
4  * Created on: Aug 17, 2014
5  * Author: Pietro Incardona
6  */
7 
8 #include <iostream>
9 
10 #define CUDA_SAFE_CALL(call) {\
11  cudaError_t err = call;\
12  if (cudaSuccess != err) {\
13  std::cerr << "Cuda error in file "<< __FILE__ << " in line " << __LINE__ << ": " << cudaGetErrorString(err);\
14  }\
15 }
16 
17