SWDEV-257937 - Updated fix for ROC_BARRIER_SYNC=0

Change-Id: I7e28e541b654db57fb0890d7dbb7519cfb2d93db
Tento commit je obsažen v:
Payam authored and Payam Ghafari committed 2021-02-11 14:01:45 -05:00
1 rodič fb142e7b2f
revize a2e0b0495c
5 files changed
+27 -20

No files matched your search

+5 -7
Zobrazit soubor
@@ -1584,12 +1584,6 @@ bool Device::populateOCLDeviceConstants() {
device::VirtualDevice* Device::createVirtualDevice(amd::CommandQueue* queue) {
amd::ScopedLock lock(vgpusAccess());
// If barrier is disabled, then profiling should be enabled to make sure HSA signal is
// attached for every dispatch
if (!settings().barrier_sync_) {
queue->properties().set(CL_QUEUE_PROFILING_ENABLE);
}
bool profiling = (queue != nullptr) && queue->properties().test(CL_QUEUE_PROFILING_ENABLE);
bool cooperative = false;
@@ -1599,7 +1593,11 @@ device::VirtualDevice* Device::createVirtualDevice(amd::CommandQueue* queue) {
cooperative = amd::IS_HIP && settings().enableCoopGroups_;
profiling = amd::IS_HIP;
}
// If barrier is disabled, then profiling should be enabled to make sure HSA signal is
// attached for every dispatch
else if (!settings().barrier_sync_) {
queue->properties().set(CL_QUEUE_PROFILING_ENABLE);
}
// Initialization of heap and other resources occur during the command
// queue creation time.
const std::vector<uint32_t> defaultCuMask = {};