Kaydet (Commit) 79ae6389 authored tarafından Markus Mohrhard's avatar Markus Mohrhard Kaydeden (comit) Markus Mohrhard

make that file platform independent

Change-Id: I65c056faaa95af3493b73a7403f199c8c826d724
üst 5606d14c
...@@ -7,13 +7,17 @@ ...@@ -7,13 +7,17 @@
using namespace std; using namespace std;
#ifdef WIN32
#define OPENCL_DLL_NAME "OpenCL.dll"
#elif defined(MACOSX)
#define OPENCL_DLL_NAME NULL
#else
#define OPENCL_DLL_NAME "libOpenCL.so"
#endif
int main() int main()
{ {
const char* dllname = "libOpenCL.so"; // on Linux int status = clewInit(OPENCL_DLL_NAME);
// const char* dllname = "OpenCL.dll"; // from GPU driver.
// const char* dllname = "amdocl.dll"; // from AMD SDK
// const char* dllname = "intelocl.dll"; // from Intel SDK
int status = clewInit(dllname);
if (status < 0) if (status < 0)
{ {
cout << "failed to load" << endl; cout << "failed to load" << endl;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment