Make OpenCL DeviceVendor into enum class and move to GPU traits
authorArtem Zhmurov <zhmurov@gmail.com>
Wed, 29 Jan 2020 13:31:43 +0000 (14:31 +0100)
committerArtem Zhmurov <zhmurov@gmail.com>
Wed, 5 Feb 2020 23:24:11 +0000 (00:24 +0100)
commitca9c69429d8a1d4ea5cb59f0c962d373424ee20d
treef0bb8ed6ec4e8c95f24349559515ab96e2675017
parentdb04849bfe8d1d7640201d6b075847bdced5ebb4
Make OpenCL DeviceVendor into enum class and move to GPU traits

The device context in OpenCL requires the information on vendor when
constructed. To prepare for opaque DeviceContext, the vendor
enum was moved into OpenCL traits.

Refs. #3311, needed for #3315.

Change-Id: Iec22ff17543b6a99407048de6e0cd82bb7218fb0
src/gromacs/ewald/pme_gpu_program_impl_ocl.cpp
src/gromacs/gpu_utils/gpu_utils_ocl.cpp
src/gromacs/gpu_utils/gputraits_ocl.h
src/gromacs/gpu_utils/ocl_compiler.cpp
src/gromacs/gpu_utils/ocl_compiler.h
src/gromacs/gpu_utils/oclutils.h
src/gromacs/nbnxm/opencl/nbnxm_ocl.cpp
src/gromacs/nbnxm/opencl/nbnxm_ocl_data_mgmt.cpp
src/gromacs/nbnxm/opencl/nbnxm_ocl_jit_support.cpp
src/gromacs/nbnxm/opencl/nbnxm_ocl_types.h