From: Szilárd Páll Date: Fri, 22 Jan 2021 15:11:30 +0000 (+0100) Subject: Disable CUDA textures also on NVIDIA Ampere A100 X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=commitdiff_plain;h=55cd57a77862e3a0c8af9d0e235d5905fcc244d3;p=alexxy%2Fgromacs.git Disable CUDA textures also on NVIDIA Ampere A100 The same benefits have been shown as those observed with V100. Partially addresses #3845 --- diff --git a/src/gromacs/gpu_utils/cuda_arch_utils.cuh b/src/gromacs/gpu_utils/cuda_arch_utils.cuh index f3484d5d56..9a2a31d85a 100644 --- a/src/gromacs/gpu_utils/cuda_arch_utils.cuh +++ b/src/gromacs/gpu_utils/cuda_arch_utils.cuh @@ -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