[llvm] [offload] Remove unused CUDA API declarations (PR #191087)
Kevin Sala Penades via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 8 17:23:48 PDT 2026
https://github.com/kevinsala created https://github.com/llvm/llvm-project/pull/191087
None
>From 298c76b7368b9f3aad8ff19b3080504896c42372 Mon Sep 17 00:00:00 2001
From: Kevin Sala <salapenades1 at llnl.gov>
Date: Wed, 8 Apr 2026 17:19:01 -0700
Subject: [PATCH] [offload] Remove unused CUDA API declarations
---
offload/plugins-nextgen/cuda/src/rtl.cpp | 8 --------
1 file changed, 8 deletions(-)
diff --git a/offload/plugins-nextgen/cuda/src/rtl.cpp b/offload/plugins-nextgen/cuda/src/rtl.cpp
index 7a47f2ce7e5aa..fdd3c8bd96601 100644
--- a/offload/plugins-nextgen/cuda/src/rtl.cpp
+++ b/offload/plugins-nextgen/cuda/src/rtl.cpp
@@ -71,14 +71,6 @@ cuMemGetAllocationGranularity(size_t *granularity,
CUmemAllocationGranularity_flags option) {}
#endif
-#if (defined(CUDA_VERSION) && (CUDA_VERSION < 11020))
-// Forward declarations of asynchronous memory management functions. This is
-// necessary for older versions of CUDA.
-CUresult cuMemAllocAsync(CUdeviceptr *ptr, size_t, CUstream) { *ptr = 0; }
-
-CUresult cuMemFreeAsync(CUdeviceptr dptr, CUstream hStream) {}
-#endif
-
/// Class implementing the CUDA device images properties.
struct CUDADeviceImageTy : public DeviceImageTy {
/// Create the CUDA image with the id and the target image pointer.
More information about the llvm-commits
mailing list