Define stubs for GPU data structures in SYCL to make SYCL compilation possible
[alexxy/gromacs.git] / src / gromacs / gpu_utils / gpu_macros.h
index 8eef2307d9f43dfb40f9afde969697cd64da9cd3..e7ecf83f57683d28cb95fe93eb717ee48eb20837 100644 (file)
@@ -74,7 +74,7 @@
 #    define OPENCL_FUNC_TERM REAL_FUNC_TERM
 #    define OPENCL_FUNC_TERM_WITH_RETURN(arg) REAL_FUNC_TERM_WITH_RETURN(arg)
 
-#elif GMX_GPU
+#elif GMX_GPU_OPENCL || GMX_GPU_CUDA
 
 /* GPU support is enabled, so these functions will have real code
  * defined somewhere */
 
 #    endif
 
-#elif !GMX_GPU
+#elif !GMX_GPU || GMX_GPU_SYCL
 
 /* No GPU support is configured, so none of these functions will have
  * real definitions. */