From: Szilárd Páll Date: Fri, 30 Jul 2021 15:38:56 +0000 (+0200) Subject: Only define GMX_SYCL_DPCPP macro in SYLC builds X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=commitdiff_plain;h=9be301a623b36a6159f3e35d1eb552b835c2bf04;p=alexxy%2Fgromacs.git Only define GMX_SYCL_DPCPP macro in SYLC builds Previously the macro could get defined not only when the build was not a hipSYCL build, but also when the build was not a SYCL build at all. --- diff --git a/src/config.h.cmakein b/src/config.h.cmakein index 1554d4aa85..bcd5a4dfe2 100644 --- a/src/config.h.cmakein +++ b/src/config.h.cmakein @@ -231,7 +231,7 @@ #cmakedefine01 GMX_SYCL_HIPSYCL /* Define if Intel's DPCPP is used (default unless hipSYCL is chosen) */ -#define GMX_SYCL_DPCPP (!GMX_SYCL_HIPSYCL) +#define GMX_SYCL_DPCPP (!GMX_SYCL_HIPSYCL && GMX_GPU_SYCL) /* Use a single compilation unit when compiling the CUDA (non-bonded) kernels. */ #cmakedefine01 GMX_CUDA_NB_SINGLE_COMPILATION_UNIT