From b2a1dc26baa667642c5e2fe3d6a78d30dccd436d Mon Sep 17 00:00:00 2001 From: Sourabh Betigeri Date: Fri, 4 Jun 2021 15:51:48 -0700 Subject: [PATCH] SWDEV-286446 - This patch enables stream operations on vega10, vega20, MI100 and MI200 Change-Id: I6f07036d8ee6e4c6b55196a13288f8107488d824 --- rocclr/device/rocm/rocdevice.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rocclr/device/rocm/rocdevice.cpp b/rocclr/device/rocm/rocdevice.cpp index 3ece9bfcf2..711d782eaf 100644 --- a/rocclr/device/rocm/rocdevice.cpp +++ b/rocclr/device/rocm/rocdevice.cpp @@ -1523,7 +1523,9 @@ bool Device::populateOCLDeviceConstants() { 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); + info_.aqlBarrierValue_ = (isa().versionMajor() == 9 && isa().versionMinor() == 0 && + (isa().versionStepping() == 0 || isa().versionStepping() == 4 || + isa().versionStepping() == 8 || isa().versionStepping() == 10)); } info_.maxPipePacketSize_ = info_.maxMemAllocSize_;