From 1e5a73c468cd274e734adad25e36652b7de57edd Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Wed, 17 Feb 2021 17:36:35 -0500 Subject: [PATCH] silence warnings when using default OpenCL headers. Pick OpenCL v2.1 as default. --- lib/gpu/geryon/ocl_device.h | 4 ++++ lib/gpu/geryon/ocl_macros.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/lib/gpu/geryon/ocl_device.h b/lib/gpu/geryon/ocl_device.h index b0a3e3d583..435ee24dd3 100644 --- a/lib/gpu/geryon/ocl_device.h +++ b/lib/gpu/geryon/ocl_device.h @@ -28,6 +28,10 @@ #include #include +#ifndef CL_TARGET_OPENCL_VERSION +#define CL_TARGET_OPENCL_VERSION 210 +#endif + #ifdef __APPLE__ #include #include diff --git a/lib/gpu/geryon/ocl_macros.h b/lib/gpu/geryon/ocl_macros.h index 5fb7665817..0e9ce78389 100644 --- a/lib/gpu/geryon/ocl_macros.h +++ b/lib/gpu/geryon/ocl_macros.h @@ -4,6 +4,10 @@ #include #include +#ifndef CL_TARGET_OPENCL_VERSION +#define CL_TARGET_OPENCL_VERSION 210 +#endif + #ifdef __APPLE__ #include #else