From 4fb3765f77e8bb34b80c69e445e529dc9bbd8961 Mon Sep 17 00:00:00 2001 From: "Ramesh Errabolu (xN/A) TX" Date: Wed, 24 Feb 2016 14:08:35 -0500 Subject: [PATCH] Configure AQL packet header with System Scope for flush [git-p4: depot-paths = "//depot/stg/hsa/drivers/hsa/runtime/": change = 1240170] [ROCm/ROCR-Runtime commit: f7693cf777873a8b723785e25031dc53cb74593b] --- projects/rocr-runtime/samples/common/hsa_base_util.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/projects/rocr-runtime/samples/common/hsa_base_util.cpp b/projects/rocr-runtime/samples/common/hsa_base_util.cpp index 12af7a2ae5..2e31e20520 100644 --- a/projects/rocr-runtime/samples/common/hsa_base_util.cpp +++ b/projects/rocr-runtime/samples/common/hsa_base_util.cpp @@ -168,8 +168,10 @@ double HSA_UTIL::Run(int dim, int group_x, int group_y, int group_z, int s_size, local_dispatch_packet.grid_size_y = grid_y; local_dispatch_packet.grid_size_z = grid_z; local_dispatch_packet.header |= HSA_PACKET_TYPE_KERNEL_DISPATCH; - local_dispatch_packet.header |= HSA_FENCE_SCOPE_AGENT << HSA_PACKET_HEADER_ACQUIRE_FENCE_SCOPE; - local_dispatch_packet.header |= HSA_FENCE_SCOPE_AGENT << HSA_PACKET_HEADER_RELEASE_FENCE_SCOPE; + //local_dispatch_packet.header |= HSA_FENCE_SCOPE_AGENT << HSA_PACKET_HEADER_ACQUIRE_FENCE_SCOPE; + //local_dispatch_packet.header |= HSA_FENCE_SCOPE_AGENT << HSA_PACKET_HEADER_RELEASE_FENCE_SCOPE; + local_dispatch_packet.header |= HSA_FENCE_SCOPE_SYSTEM << HSA_PACKET_HEADER_ACQUIRE_FENCE_SCOPE; + local_dispatch_packet.header |= HSA_FENCE_SCOPE_SYSTEM << HSA_PACKET_HEADER_RELEASE_FENCE_SCOPE; local_dispatch_packet.kernel_object = codeHandle; ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////