fixed multi-dim module kernel launch

Change-Id: Id1d81f2375d058979ab526433f905cf0ea3d23d6
This commit is contained in:
Aditya Atluri
2016-11-11 12:25:23 -06:00
parent 1e5515ee9f
commit abf6872b2b
+1 -1
View File
@@ -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);