From 23dbb662d3f417062f097106ed31f717e260034c Mon Sep 17 00:00:00 2001 From: Andrey Alekseenko Date: Mon, 11 Oct 2021 17:32:54 +0200 Subject: [PATCH] Fix fft/CMakeLists when compiling with hipSYCL 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gromacs/fft/CMakeLists.txt b/src/gromacs/fft/CMakeLists.txt index 6ad3558840..a1c2e6899a 100644 --- a/src/gromacs/fft/CMakeLists.txt +++ b/src/gromacs/fft/CMakeLists.txt @@ -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 ) -- 2.22.0