[Openmp-commits] [openmp] [OpenMP] Fix build breakage (NFC) (PR #80313)
Kelvin Li via Openmp-commits
openmp-commits at lists.llvm.org
Thu Feb 1 09:47:36 PST 2024
https://github.com/kkwli created https://github.com/llvm/llvm-project/pull/80313
Assign `nullptr` to the pointer instead.
>From ddacdb587b3f92a1a59ddfb150067409ea723271 Mon Sep 17 00:00:00 2001
From: Kelvin Li <kli at ca.ibm.com>
Date: Thu, 1 Feb 2024 00:25:39 -0500
Subject: [PATCH] [OpenMP] Fix build failure
---
openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp b/openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp
index 5ed73d103584d..f7b791b8420dc 100644
--- a/openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp
+++ b/openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp
@@ -69,7 +69,7 @@ cuMemGetAllocationGranularity(size_t *granularity,
#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 = nullptr; }
+CUresult cuMemAllocAsync(CUdeviceptr *ptr, size_t, CUstream) { ptr = nullptr; }
CUresult cuMemFreeAsync(CUdeviceptr dptr, CUstream hStream) {}
#endif
More information about the Openmp-commits
mailing list