Fix fft/CMakeLists when compiling with hipSYCL
authorAndrey Alekseenko <al42and@gmail.com>
Mon, 11 Oct 2021 15:32:54 +0000 (17:32 +0200)
committerAndrey Alekseenko <al42and@gmail.com>
Wed, 13 Oct 2021 17:41:59 +0000 (17:41 +0000)
GMX_GPU_HIPSYCL is never defined, and thus evaluates to false.

The code was compiling just fine, but the tests were failing in
runtime with "symbol lookup error".

src/gromacs/fft/CMakeLists.txt

index 6ad355884042825c3bf52d3dd31fe395149ebc3d..a1c2e6899a8831b07fc9bf80533f0b258e5545d9 100644 (file)
@@ -74,7 +74,7 @@ elseif (GMX_GPU_OPENCL)
         gpu_3dfft_ocl.cpp
         )
 elseif (GMX_GPU_SYCL)
-    if (NOT GMX_GPU_HIPSYCL AND GMX_FFT_MKL)
+    if (NOT GMX_SYCL_HIPSYCL AND GMX_FFT_MKL)
             gmx_add_libgromacs_sources(
             gpu_3dfft_sycl_mkl.cpp
             )
@@ -82,7 +82,7 @@ elseif (GMX_GPU_SYCL)
             gpu_3dfft_sycl_mkl.cpp
             )
     endif()
-    if (GMX_GPU_HIPSYCL)
+    if (GMX_SYCL_HIPSYCL)
             gmx_add_libgromacs_sources(
             gpu_3dfft_sycl_rocfft.cpp
             )