15 enum skepu_container_type
26 #define MAX_GPU_DEVICES 4
29 #define MAX_POSSIBLE_CUDA_STREAMS_PER_GPU 16
32 #define SKEPU_NUMGPU 1
33 #elif defined(SKEPU_CUDA) // Only when CUDA is enabled and multi-GPU is possible
38 #define SHMEM_SAFITY_BUFFER 30
41 #define REDUCE_GPU_THRESHOLD 50
47 void deleteVecPointers();
50 #define SKEPU_EXIT() { starpu_shutdown(); }
54 #define OPENCL_SOURCE_FILE_NAME "opencl_datatype_src.cl"
63 skepu_error(std::string m) { message = m; }
64 inline std::string getMessage() {
return message; };
65 friend std::ostream& operator<<(std::ostream &os, skepu_error& err)
67 os<<
"SKEPU: "<<(err.getMessage())<<
"\n";
75 #define REPORT_ERROR(ErrormMsg) throw skepu::skepu_error( ErrormMsg);
78 inline void _skepu_error (
const char* pErrMsg)
80 cerr <<
"SKEPU ERROR: " + pErrMsg << endl;
84 #define REPORT_ERROR(ErrormMsg) skepu::_matrix_error( ErrormMsg);
92 #define STARPU_USE_OPENCL
Contains few helper methods that are used globally by different classes.
Defines a few macros that can be used to output text when debugging. The macros use std::cerr...
Contains the definitions of some helper functions related to CUDA backend.
Contains the definitions of some helper functions related to OpenCL backend.