[Openmp-commits] [openmp] cc0c8e5 - [OpenMP] Fix build breakage (NFC) (#80313)
via Openmp-commits
openmp-commits at lists.llvm.org
Thu Feb 1 10:33:27 PST 2024
Author: Kelvin Li
Date: 2024-02-01T12:33:23-06:00
New Revision: cc0c8e592f8ff58ab821a04b7dcfb71403b4bea6
URL: https://github.com/llvm/llvm-project/commit/cc0c8e592f8ff58ab821a04b7dcfb71403b4bea6
DIFF: https://github.com/llvm/llvm-project/commit/cc0c8e592f8ff58ab821a04b7dcfb71403b4bea6.diff
LOG: [OpenMP] Fix build breakage (NFC) (#80313)
Assign `nullptr` to the pointer instead.
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 5ed73d103584d..f85a00cd1cd53 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 = 0; }
CUresult cuMemFreeAsync(CUdeviceptr dptr, CUstream hStream) {}
#endif
More information about the Openmp-commits
mailing list