483 #if defined(__APPLE__) || defined(__MACOSX)
484 #include <OpenCL/cl.h>
489 typedef cl_double clqmc_double;
490 typedef cl_float clqmc_float;
491 typedef cl_int clqmc_int;
492 typedef cl_uint clqmc_uint;
493 typedef cl_long clqmc_long;
494 typedef cl_ulong clqmc_ulong;
496 #ifdef CLQMC_SINGLE_PRECISION
497 typedef clqmc_float clqmc_fptype;
498 #define _CLQMC_FPTYPE clqmc_float
500 typedef clqmc_double clqmc_fptype;
501 #define _CLQMC_FPTYPE clqmc_double
503 #define _CLQMC_TAG_FPTYPE(name) _CLQMC_TAG_FPTYPE_(name,_CLQMC_FPTYPE)
504 #define _CLQMC_TAG_FPTYPE_(name,fptype) _CLQMC_TAG_FPTYPE__(name,fptype)
505 #define _CLQMC_TAG_FPTYPE__(name,fptype) name##_##fptype
508 #if defined( _WIN32 )
509 #define CLQMCAPI __declspec( dllexport )
527 typedef enum clqmcStatus_ {
528 CLQMC_SUCCESS = CL_SUCCESS,
529 CLQMC_OUT_OF_RESOURCES = CL_OUT_OF_RESOURCES,
530 CLQMC_INVALID_VALUE = CL_INVALID_VALUE,
532 CLQMC_NOT_IMPLEMENTED
const char * clqmcGetLibraryRoot()
Retrieve the library installation path.
const char * clqmcGetLibraryDeviceIncludes(cl_int *err)
Generate an include option string for use with the OpenCL C compiler.
enum clqmcStatus_ clqmcStatus
Error codes.
const char * clqmcGetErrorString()
Retrieve the last error message.