Update defines to use old neighbor code for CUDA >= 11.2

This commit is contained in:
Richard Berger
2021-04-22 09:16:37 -04:00
parent 7e2d40c5fa
commit d405f2ec4b
2 changed files with 4 additions and 4 deletions

View File

@ -26,8 +26,8 @@
#if !defined(USE_OPENCL) && !defined(USE_HIP)
#ifndef LAL_USE_OLD_NEIGHBOR
// Issue with incorrect results with CUDA 11.2
#if (CUDA_VERSION > 11019) && (CUDA_VERSION < 11030)
// Issue with incorrect results with CUDA >= 11.2
#if (CUDA_VERSION > 11019)
#define LAL_USE_OLD_NEIGHBOR
#endif
#endif

View File

@ -34,8 +34,8 @@ _texture_2d( pos_tex,int4);
#endif
#ifdef NV_KERNEL
#if (__CUDACC_VER_MAJOR__ == 11) && (__CUDACC_VER_MINOR__ == 2)
// Issue with incorrect results in CUDA 11.2
#if (__CUDACC_VER_MAJOR__ == 11) && (__CUDACC_VER_MINOR__ >= 2)
// Issue with incorrect results in CUDA >= 11.2
#define LAL_USE_OLD_NEIGHBOR
#endif
#endif