[Openmp-commits] [PATCH] D77005: [OpenMP] Optimized stream selection by scheduling data mapping for the same target region into a same stream
Shilei Tian via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Sun Apr 5 11:44:43 PDT 2020
tianshilei1992 added inline comments.
================
Comment at: openmp/libomptarget/plugins/cuda/src/rtl.cpp:744
- err = cuStreamSynchronize(Stream);
- if (err != CUDA_SUCCESS) {
- DP("Error when synchronizing async data transfer from host to device. "
- "Pointers: host = " DPxMOD ", device = " DPxMOD ", size = %" PRId64 "\n",
- DPxPTR(hst_ptr), DPxPTR(tgt_ptr), size);
- CUDA_ERR_STRING(err);
- return OFFLOAD_FAIL;
+ return __tgt_rtl_synchronize(device_id, &async_info);
}
----------------
tianshilei1992 wrote:
> jdoerfert wrote:
> > Style: Remove the else case, there is a return before. Same below.
> Sorry, didn't get your point. The `return` above only applies when `rc != OFFLOAD_SUCCESS`.
Okay, will do that.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77005/new/
https://reviews.llvm.org/D77005
More information about the Openmp-commits
mailing list