Add SYCL implementation of LeapFrogGpu
[alexxy/gromacs.git] / src / gromacs / mdlib / CMakeLists.txt
index 6cb02ee51771b2c8388cbadeef6c23b1a213fb91..949a3057972b5275f3aab35af1667cb72af66f78 100644 (file)
@@ -34,6 +34,8 @@
 # the research papers on the package. Check out http://www.gromacs.org.
 
 file(GLOB MDLIB_SOURCES *.cpp)
+# To avoid listing all the necessary files manually, we will remove SYCL-specfific one here:
+list(REMOVE_ITEM MDLIB_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/leapfrog_gpu_sycl.cpp)
 
 set(MDLIB_SOURCES ${MDLIB_SOURCES} PARENT_SCOPE)
 if (BUILD_TESTING)
@@ -48,4 +50,11 @@ if(GMX_GPU_CUDA)
        gpuforcereduction_impl.cu
        )
 endif()
-
+if(GMX_GPU_SYCL)
+    gmx_add_libgromacs_sources(
+        leapfrog_gpu_sycl.cpp
+    )
+    _gmx_add_files_to_property(SYCL_SOURCES
+        leapfrog_gpu_sycl.cpp
+    )
+endif()