From 6dcdf08e0de40faeace2338288c60d68508a81c0 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 --- hipamd/src/hip_hcc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hipamd/src/hip_hcc.cpp b/hipamd/src/hip_hcc.cpp index 5218f4e2eb..e5619f723e 100644 --- a/hipamd/src/hip_hcc.cpp +++ b/hipamd/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);