From 261620a2ef2a45bf80a035bed9f879a43de5d3a1 Mon Sep 17 00:00:00 2001 From: Ajay Date: Wed, 12 Oct 2022 23:05:17 +0000 Subject: [PATCH] SWDEV-357207 - Linux: enable StreamWrite/Wait APIs in deviceAttribute Change-Id: I593df2dbb7a0233dd42f8d873510d85bbb27feff --- rocclr/device/rocm/rocdevice.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/rocclr/device/rocm/rocdevice.cpp b/rocclr/device/rocm/rocdevice.cpp index 49616b8523..f9d7743d58 100644 --- a/rocclr/device/rocm/rocdevice.cpp +++ b/rocclr/device/rocm/rocdevice.cpp @@ -1577,11 +1577,8 @@ bool Device::populateOCLDeviceConstants() { info_.pcieDeviceId_ = pciDeviceId_; info_.cooperativeGroups_ = settings().enableCoopGroups_; info_.cooperativeMultiDeviceGroups_ = settings().enableCoopMultiDeviceGroups_; - - // TODO: Update this to use HSA API when it is ready. For now limiting this to gfx9 - info_.aqlBarrierValue_ = (isa().versionMajor() == 9 && isa().versionMinor() == 0 && - (isa().versionStepping() == 0 || isa().versionStepping() == 4 || - isa().versionStepping() == 8 || isa().versionStepping() == 10)); + // Enable StreamWrite and StreamWait for all devices + info_.aqlBarrierValue_ = true; } info_.maxPipePacketSize_ = info_.maxMemAllocSize_;