Enable GMX_GPU=SYCL compiles
authorErik Lindahl <erik.lindahl@gmail.com>
Tue, 15 Sep 2020 12:38:19 +0000 (12:38 +0000)
committerPaul Bauer <paul.bauer.q@gmail.com>
Tue, 15 Sep 2020 12:38:19 +0000 (12:38 +0000)
commit6e13363ecb18a0f287ec82b85578f20599a7b56f
tree98f09b3d2b4b9e50b78a31746d1662b92c144802
parenta4189586acafe3178b826cd9a65012dea4d9d9d4
Enable GMX_GPU=SYCL compiles

Update CMake config to properly apply -fsycl, but only to files
including actual SYCL code, and get linking working.  Tested
with both dpcpp and icpx, and added trivial SYCL code to a
dimmy device context, just to ensure compiles and linking works
both with and without SYCL support enabled.

Also fixes a number of new warnings about unused variables now
detected with dpcpp and icpx.
CMakeLists.txt
cmake/gmxCFlags.cmake
cmake/gmxManageSYCL.cmake
src/gromacs/CMakeLists.txt
src/gromacs/gpu_utils/CMakeLists.txt
src/gromacs/gpu_utils/clfftinitializer.cpp
src/gromacs/gpu_utils/device_context_sycl.cpp [new file with mode: 0644]
src/gromacs/gpu_utils/device_stream_sycl.cpp [new file with mode: 0644]
src/gromacs/gpu_utils/devicebuffer_sycl.h
src/gromacs/gpu_utils/gpueventsynchronizer_sycl.h