silence warnings when using default OpenCL headers. Pick OpenCL v2.1 as default.

This commit is contained in:
Axel Kohlmeyer
2021-02-17 17:36:35 -05:00
parent 721c6d96cc
commit 1e5a73c468
2 changed files with 8 additions and 0 deletions

View File

@ -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>

View File

@ -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