silence warnings when using default OpenCL headers. Pick OpenCL v2.1 as default.
This commit is contained in:
@ -28,6 +28,10 @@
|
||||
#include <vector>
|
||||
#include <iostream>
|
||||
|
||||
#ifndef CL_TARGET_OPENCL_VERSION
|
||||
#define CL_TARGET_OPENCL_VERSION 210
|
||||
#endif
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <OpenCL/cl.h>
|
||||
#include <OpenCL/cl_platform.h>
|
||||
|
||||
@ -4,6 +4,10 @@
|
||||
#include <cstdio>
|
||||
#include <cassert>
|
||||
|
||||
#ifndef CL_TARGET_OPENCL_VERSION
|
||||
#define CL_TARGET_OPENCL_VERSION 210
|
||||
#endif
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <OpenCL/cl.h>
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user