Fix CUDA clang-tidy complaints
authorAndrey Alekseenko <al42and@gmail.com>
Tue, 2 Nov 2021 12:33:13 +0000 (13:33 +0100)
committerMark Abraham <mark.j.abraham@gmail.com>
Wed, 3 Nov 2021 07:54:15 +0000 (07:54 +0000)
src/gromacs/fft/tests/fft.cpp

index b2dc98e4b5aece3dd7314e4e5f3ac7327e0a92b7..f89d1747c2305497547433d93e0d99b9631ac2af 100644 (file)
@@ -372,7 +372,7 @@ TEST_F(FFTTest3D, Real5_6_9)
  *
  *  DPCPP uses oneMKL, which seems to have troubles with out-of-place
  *  transforms. */
-static constexpr bool sc_performOutOfPlaceFFT = !(GMX_SYCL_DPCPP && GMX_FFT_MKL);
+constexpr bool sc_performOutOfPlaceFFT = !((GMX_SYCL_DPCPP == 1) && (GMX_FFT_MKL == 1));
 
 /*! \brief Return the output grid depending on whether in- or out-of
  * place FFT is used