SWDEV-257937 - Updated fix for ROC_BARRIER_SYNC=0

Change-Id: I7e28e541b654db57fb0890d7dbb7519cfb2d93db
这个提交包含在:
Payam 编写, Payam Ghafari 于 2021-02-11 14:01:45 -05:00 提交
1 父节点 fb142e7b2f
当前提交 a2e0b0495c
5 个文件已更改
+27 -20

没有与搜索条件相匹配的文件

+5 -7
查看文件
@@ -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 = {};