Suppress warnings when we have OpenCL 2.0 support
commit0def745ef1fd8267811b9aa5e03abeacdb1d47a8
authorMark Abraham <mark.j.abraham@gmail.com>
Wed, 28 Oct 2015 15:03:47 +0000 (28 16:03 +0100)
committerMark Abraham <mark.j.abraham@gmail.com>
Wed, 28 Oct 2015 16:45:00 +0000 (28 17:45 +0100)
tree457404ce63dec4802c9f5965be1704781c934601
parent8997703741f18f7f2f2021f6ab62586bce50049d
Suppress warnings when we have OpenCL 2.0 support

OpenCL 2.0 headers apply deprecation compiler attributes to various
functions present in earlier OpenCL versions. We have to use those
functions because we support OpenCL 1.1. So we use the OpenCL
mechanism to declare our intention, which suppresses the compiler
warnings.

Change-Id: I237b8bdd88fe575e127436b078da6d0c83d44d87
src/gromacs/gmxlib/ocl_tools/oclutils.h
src/gromacs/mdlib/nbnxn_ocl/nbnxn_ocl_types.h