From 2ef4dead24de512fc26559154a9699111f80437e Mon Sep 17 00:00:00 2001 From: lthakur Date: Tue, 4 Feb 2020 19:37:38 +0530 Subject: [PATCH] [dtest] Update hipLaunchCoopMultiKernel.cpp (#1844) used reinterpret_cast for numBlocks, as expected by hipOccupancyMaxActiveBlocksPerMultiprocessor() api. --- hipamd/tests/src/runtimeApi/module/hipLaunchCoopMultiKernel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hipamd/tests/src/runtimeApi/module/hipLaunchCoopMultiKernel.cpp b/hipamd/tests/src/runtimeApi/module/hipLaunchCoopMultiKernel.cpp index ea0f41d631..b4d57a7693 100644 --- a/hipamd/tests/src/runtimeApi/module/hipLaunchCoopMultiKernel.cpp +++ b/hipamd/tests/src/runtimeApi/module/hipLaunchCoopMultiKernel.cpp @@ -156,7 +156,7 @@ int main() { for (int i = 0; i < nGpu; i++) { HIPCHECK(hipSetDevice(i)); dimBlock.x = workgroups[set]; - HIPCHECK(hipOccupancyMaxActiveBlocksPerMultiprocessor(&numBlocks, + HIPCHECK(hipOccupancyMaxActiveBlocksPerMultiprocessor(reinterpret_cast(&numBlocks), (hipFunction_t)test_gws, dimBlock.x * dimBlock.y * dimBlock.z, dimBlock.x * sizeof(long))); std::cout << "GPU(" << i << ") Block size: " << dimBlock.x << " Num blocks per CU: " << numBlocks << "\n";