From 96f7a083c93272781f961b65986fc8da38132cd8 Mon Sep 17 00:00:00 2001 From: Aditya Atluri Date: Fri, 11 Nov 2016 12:25:23 -0600 Subject: [PATCH] fixed multi-dim module kernel launch Change-Id: Id1d81f2375d058979ab526433f905cf0ea3d23d6 [ROCm/hip commit: abf6872b2b5ba5d9be2eef8bb5d0f41a89092bdc] --- projects/hip/src/hip_hcc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip/src/hip_hcc.cpp b/projects/hip/src/hip_hcc.cpp index 5218f4e2eb..e5619f723e 100644 --- a/projects/hip/src/hip_hcc.cpp +++ b/projects/hip/src/hip_hcc.cpp @@ -525,7 +525,7 @@ void ihipStream_t::launchModuleKernel( (HSA_FENCE_SCOPE_SYSTEM << HSA_PACKET_HEADER_ACQUIRE_FENCE_SCOPE) | (HSA_FENCE_SCOPE_SYSTEM << HSA_PACKET_HEADER_RELEASE_FENCE_SCOPE); - uint16_t setup = 1 << HSA_KERNEL_DISPATCH_PACKET_SETUP_DIMENSIONS; + uint16_t setup = 3 << HSA_KERNEL_DISPATCH_PACKET_SETUP_DIMENSIONS; uint32_t header32 = header | (setup << 16); __atomic_store_n((uint32_t*)(dispatch_packet), header32, __ATOMIC_RELEASE);