From 0885edc154b3c0d1299aa54425d93a1562edba5e Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sun, 5 Feb 2023 03:02:19 -0500 Subject: [PATCH] re-enable new neighbor lists with CUDA 12.0 and later --- lib/gpu/lal_neighbor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/gpu/lal_neighbor.h b/lib/gpu/lal_neighbor.h index 45ec95a9d1..37fbb3bcb5 100644 --- a/lib/gpu/lal_neighbor.h +++ b/lib/gpu/lal_neighbor.h @@ -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) +// Issue with incorrect results with CUDA >= 11.2 and pre-12.0 +#if (CUDA_VERSION > 11019) && (CUDA_VERSION < 12000) #define LAL_USE_OLD_NEIGHBOR #endif #endif