From: Andrey Alekseenko Date: Mon, 11 Oct 2021 15:32:54 +0000 (+0200) Subject: Fix fft/CMakeLists when compiling with hipSYCL X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?p=alexxy%2Fgromacs.git;a=commitdiff_plain;h=23dbb662d3f417062f097106ed31f717e260034c 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". --- 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 )