Skip to content

Commit

Permalink
[OpenMP] Fix build breakage (NFC) (llvm#80313)
Browse files Browse the repository at this point in the history
Assign `nullptr` to the pointer instead.
  • Loading branch information
kkwli authored Feb 1, 2024
1 parent f0c8d88 commit cc0c8e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cc0c8e5

Please sign in to comment.