diff --git a/include/OpenCL_utils.h b/include/OpenCL_utils.h index 0a57c9d..ad7b724 100644 --- a/include/OpenCL_utils.h +++ b/include/OpenCL_utils.h @@ -3,11 +3,13 @@ #include #include + #ifdef __APPLE__ #include "OpenCL/opencl.h" #else #include "CL/cl.h" #endif + #include #include #include diff --git a/makefile b/makefile index 2fdd434..be4c9b2 100644 --- a/makefile +++ b/makefile @@ -48,7 +48,7 @@ OPENCL_PATH=/opt/AMDAPP/SDK # OS-specific build flags ifneq ($(DARWIN),) OPENCL_LIBS= -framework OpenCL - INCLUDE_PATH= -I$(INC_DIR) -I/Developer/NVIDIA/CUDA-5.5/include -D__PROFILING + INCLUDE_PATH= -I$(INC_DIR) -I/Developer/NVIDIA/CUDA-5.5/include -D__PROFILING -D_USE_FLOAT else ifeq ($(OS_SIZE),32) CCFLAGS := -m32 diff --git a/src/OpenCL_utils.c b/src/OpenCL_utils.c index bea822e..bf02e97 100644 --- a/src/OpenCL_utils.c +++ b/src/OpenCL_utils.c @@ -255,7 +255,9 @@ cl_int InitOpenCLEnvironment( char * device_type, cl_device_id ** devices, cl_co free(platforms_list); #ifdef __DEBUG + PrintPlatform( platform ); + #endif /* Initialize the Devices */ @@ -265,7 +267,9 @@ cl_int InitOpenCLEnvironment( char * device_type, cl_device_id ** devices, cl_co } #ifdef __DEBUG + fprintf( stdout, "platform[%p]: Found a device.\n", platform ); + #endif //allocate memory for devices, contexts and command queues