Gromacs  2018.8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gmxopencl.h File Reference
#include <CL/opencl.h>
+ Include dependency graph for gmxopencl.h:
+ This graph shows which files directly or indirectly include this file:

Description

Wraps the complexity of including OpenCL in Gromacs.

Because OpenCL 2.0 is not officially supported widely, GROMACS uses earlier interfaces. Some of those have been deprecated in 2.0, and generate warnings, which we need to suppress.

Additionally, this code wraps they way that things work differently on Apple platforms.

Macros

#define CL_USE_DEPRECATED_OPENCL_1_1_APIS
 Declare to OpenCL SDKs that we intend to use OpenCL API features that were deprecated in 1.2 or 2.0, so that they don't warn about it.
 
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
 
#define CL_USE_DEPRECATED_OPENCL_2_0_APIS