[Openmp-commits] [openmp] 002f422 - [OpenMP] Replace CUDART_VERSION with CUDA_VERSION
Johannes Doerfert via Openmp-commits
openmp-commits at lists.llvm.org
Mon Nov 6 12:30:50 PST 2023
Author: Johannes Doerfert
Date: 2023-11-06T12:30:40-08:00
New Revision: 002f422410803717c008caf52eef30bc4d075426
URL: https://github.com/llvm/llvm-project/commit/002f422410803717c008caf52eef30bc4d075426
DIFF: https://github.com/llvm/llvm-project/commit/002f422410803717c008caf52eef30bc4d075426.diff
LOG: [OpenMP] Replace CUDART_VERSION with CUDA_VERSION
Added:
Modified:
openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp
Removed:
################################################################################
diff --git a/openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp b/openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp
index d4e9911b67189f8..84c0fd7f724ee87 100644
--- a/openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp
+++ b/openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp
@@ -37,7 +37,7 @@ struct CUDAKernelTy;
struct CUDADeviceTy;
struct CUDAPluginTy;
-#if (defined(CUDART_VERSION) && (CUDART_VERSION < 11000))
+#if (defined(CUDA_VERSION) && (CUDA_VERSION < 11000))
/// Forward declarations for all Virtual Memory Management
/// related data structures and functions. This is necessary
/// for older cuda versions.
@@ -543,7 +543,7 @@ struct CUDADeviceTy : public GenericDeviceTy {
/// CUDA support VA management
bool supportVAManagement() const override {
-#if (defined(CUDART_VERSION) && (CUDART_VERSION >= 11000))
+#if (defined(CUDA_VERSION) && (CUDA_VERSION >= 11000))
return true;
#else
return false;
More information about the Openmp-commits
mailing list