SWDEV-257937 - Updated fix for ROC_BARRIER_SYNC=0
Change-Id: I7e28e541b654db57fb0890d7dbb7519cfb2d93db
This commit is contained in:
1 vanhempi
fb142e7b2f
commit
a2e0b0495c
5 files changed
+27
-20
No files matched your search
@@ -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 = {};
|
||||
|
||||
Reference in new issue
Block a user