[Openmp-commits] [PATCH] D104418: [OpenMP][Offloading] Fixed data race in libomptarget caused by async data movement
Ye Luo via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Fri Jul 23 13:56:18 PDT 2021
ye-luo added inline comments.
================
Comment at: openmp/libomptarget/plugins/cuda/src/rtl.cpp:1189
+
+ CUresult Err = cuStreamWaitEvent(Stream, Event, CU_EVENT_WAIT_DEFAULT);
+ if (Err != CUDA_SUCCESS) {
----------------
CU_EVENT_WAIT_DEFAULT seems new from CUDA 11.1.
cuStreamWaitEvent
https://docs.nvidia.com/cuda/archive/11.1.0/cuda-driver-api/group__CUDA__STREAM.html#group__CUDA__STREAM_1g6a898b652dfc6aa1d5c8d97062618b2f
https://docs.nvidia.com/cuda/archive/11.0/cuda-driver-api/group__CUDA__STREAM.html#group__CUDA__STREAM_1g6a898b652dfc6aa1d5c8d97062618b2f
A solution seems like putting 0 for <11.1
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104418/new/
https://reviews.llvm.org/D104418
More information about the Openmp-commits
mailing list