[Openmp-commits] [openmp] aaf50ad - Revert "[OpenMP][NFC] Added DeviceID and Event pointer to __tgt_async_info"
Shilei Tian via Openmp-commits
openmp-commits at lists.llvm.org
Wed Jun 17 12:01:39 PDT 2020
Author: Shilei Tian
Date: 2020-06-17T15:01:16-04:00
New Revision: aaf50adb539dc2504123486448a2c6f28f2c2c72
URL: https://github.com/llvm/llvm-project/commit/aaf50adb539dc2504123486448a2c6f28f2c2c72
DIFF: https://github.com/llvm/llvm-project/commit/aaf50adb539dc2504123486448a2c6f28f2c2c72.diff
LOG: Revert "[OpenMP][NFC] Added DeviceID and Event pointer to __tgt_async_info"
This reverts commit ee1bf45e1d42d7f386d8321c3a8799476344ad91.
Added:
Modified:
openmp/libomptarget/include/omptarget.h
Removed:
################################################################################
diff --git a/openmp/libomptarget/include/omptarget.h b/openmp/libomptarget/include/omptarget.h
index 7ba088c1996b..de3afc36c7f2 100644
--- a/openmp/libomptarget/include/omptarget.h
+++ b/openmp/libomptarget/include/omptarget.h
@@ -114,14 +114,10 @@ struct __tgt_target_table {
/// This struct contains information exchanged between
diff erent asynchronous
/// operations for device-dependent optimization and potential synchronization
struct __tgt_async_info {
- // Device ID. Note that it is NOT the RTLDeviceID. We don't need to store the
- // RTLDeviceID explicitly as we can always get it via DeviceID.
- int DeviceID = -1;
// A pointer to a queue-like structure where offloading operations are issued.
- // We assume to use this structure to do synchronization.
+ // We assume to use this structure to do synchronization. In CUDA backend, it
+ // is CUstream.
void *Queue = nullptr;
- // A pointer to a device-dependent event used for synchronization as well.
- void *Event = nullptr;
};
#ifdef __cplusplus
More information about the Openmp-commits
mailing list