Skip to content

Commit 9167316

Browse files
committed
Fix OpenCL header inclusion on macOS by using OpenCL/opencl.h framework header
1 parent c6cc28d commit 9167316

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

cpp_src/core/OpenCLContext.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
#include "IComputeContext.h"
44
#define CL_TARGET_OPENCL_VERSION 300
55
#include "utils/DynamicLibrary.h"
6+
#ifdef __APPLE__
7+
#include <OpenCL/opencl.h>
8+
#else
69
#include <CL/cl.h>
10+
#endif
711
#include <memory>
812
#include <stdexcept>
913
#include <string>

0 commit comments

Comments
 (0)