Disable CUDA textures also on NVIDIA Ampere A100
authorSzilárd Páll <pall.szilard@gmail.com>
Fri, 22 Jan 2021 15:11:30 +0000 (16:11 +0100)
committerSzilárd Páll <pall.szilard@gmail.com>
Fri, 22 Jan 2021 15:11:30 +0000 (16:11 +0100)
The same benefits have been shown as those observed with V100.

Partially addresses #3845

src/gromacs/gpu_utils/cuda_arch_utils.cuh

index f3484d5d569a64b75909dabf8c9be7cf1767c19a..9a2a31d85aefeac35f2bc6cf4b5e36d6e2eba835 100644 (file)
@@ -69,14 +69,14 @@ static const unsigned int c_fullWarpMask = 0xffffffff;
  *
  *  Only texture objects supported.
  *  Disable texture support missing in clang (all versions up to <=5.0-dev as of writing).
- *  Disable texture support on CC 7.0 for performance reasons (Issue #3845).
+ *  Disable texture support on CC 7.0 and 8.0 for performance reasons (Issue #3845).
  *
  *  This option will not influence functionality. All features using textures ought
  *  to have fallback for texture-less reads (direct/LDG loads), all new code needs
  *  to provide fallback code.
  */
 #if defined(GMX_DISABLE_CUDA_TEXTURES) || (defined(__clang__) && defined(__CUDA__)) \
-        || (GMX_PTX_ARCH == 700)
+        || (GMX_PTX_ARCH == 700) || (GMX_PTX_ARCH == 800)
 #    define DISABLE_CUDA_TEXTURES 1
 #else
 #    define DISABLE_CUDA_TEXTURES 0