I was unable to compile on Mac with SDK 10.10 and Xcode 6.2. However, the following are the simple fixes.
Copy cl.hpp:
https://www.khronos.org/registry/cl/api/1.2/cl.hpp
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/OpenCL.framework/Versions/A/Headers
Fix CLUtils.hpp by adding #include < numeric > (std::accumulate needs it)
include < numeric >
to have this compile:
rep total (rep initVal = 0.0)
{
return std::accumulate (tExec.begin (), tExec.end (), initVal);
}
Fix CLUtils.cpp by adding (APPLE)
if defined(_WIN32)
include <windows.h>
elif defined(linux)
include <GL/glx.h>
elif APPLE
include <OpenGL/OpenGL.h>
endif
I was unable to compile on Mac with SDK 10.10 and Xcode 6.2. However, the following are the simple fixes.
https://www.khronos.org/registry/cl/api/1.2/cl.hpp
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/OpenCL.framework/Versions/A/Headers
include < numeric >
to have this compile:
rep total (rep initVal = 0.0)
{
return std::accumulate (tExec.begin (), tExec.end (), initVal);
}
if defined(_WIN32)
include <windows.h>
elif defined(linux)
include <GL/glx.h>
elif APPLE
include <OpenGL/OpenGL.h>
endif