Fixing cmake and adding static variable instance.

This commit is contained in:
clemahieu 2016-04-05 21:50:48 -05:00
commit 999496bb93
2 changed files with 4 additions and 2 deletions

View file

@ -210,7 +210,7 @@ set_target_properties (rai_wallet qt_test PROPERTIES LINK_FLAGS "${PLATFORM_LINK
if (WIN32)
set (PLATFORM_LIBS ws2_32 mswsock)
else (WIN32)
set (PLATFORM_LIBS pthread OpenCL)
set (PLATFORM_LIBS pthread dl)
endif (WIN32)
if (WIN32)

View file

@ -26,6 +26,8 @@ public:
};
}
opencl_initializer opencl_initializer::initializer;
cl_int clGetPlatformIDs (cl_uint num_entries, cl_platform_id * platforms, cl_uint * num_platforms)
{
cl_int result;
@ -44,4 +46,4 @@ cl_int clGetPlatformIDs (cl_uint num_entries, cl_platform_id * platforms, cl_uin
cl_int clGetDeviceIDs (cl_platform_id platform, cl_device_type device_type, cl_uint num_entries, cl_device_id * devices, cl_uint * num_devices)
{
return clGetDeviceIDs (platform, device_type, num_entries, devices, num_devices);
}
}