forked from lijiext/lammps
silence warnings from generic OpenCL header files (as seen on Fedora 31)
This commit is contained in:
parent
8ac2da792c
commit
66a473455e
|
@ -28,6 +28,14 @@
|
|||
#include <vector>
|
||||
#include <iostream>
|
||||
|
||||
/* We default to OpenCL 1.2 as target version for now as
|
||||
* there are known issues with OpenCL 2.0 and later.
|
||||
* This is also to silence warnings from generic OpenCL headers */
|
||||
|
||||
#if !defined(CL_TARGET_OPENCL_VERSION)
|
||||
#define CL_TARGET_OPENCL_VERSION 120
|
||||
#endif
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <OpenCL/cl.h>
|
||||
#include <OpenCL/cl_platform.h>
|
||||
|
|
|
@ -4,6 +4,14 @@
|
|||
#include <cstdio>
|
||||
#include <cassert>
|
||||
|
||||
/* We default to OpenCL 1.2 as target version for now as
|
||||
* there are known issues with OpenCL 2.0 and later.
|
||||
* This is also to silence warnings from generic OpenCL headers */
|
||||
|
||||
#if !defined(CL_TARGET_OPENCL_VERSION)
|
||||
#define CL_TARGET_OPENCL_VERSION 120
|
||||
#endif
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <OpenCL/cl.h>
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue