From 7a3d592ed0cc654390d50241155b00fce9042c2a Mon Sep 17 00:00:00 2001 From: Aryan Salmanpour Date: Tue, 5 Nov 2019 02:02:46 -0500 Subject: [PATCH] [hip][tests] Add two more workgroup sizes for testing hipLaunchCooperativeKernel (#1613) --- .../src/runtimeApi/module/hipLaunchCooperativeKernel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hipamd/tests/src/runtimeApi/module/hipLaunchCooperativeKernel.cpp b/hipamd/tests/src/runtimeApi/module/hipLaunchCooperativeKernel.cpp index 89d003ea94..c76685fa89 100644 --- a/hipamd/tests/src/runtimeApi/module/hipLaunchCooperativeKernel.cpp +++ b/hipamd/tests/src/runtimeApi/module/hipLaunchCooperativeKernel.cpp @@ -108,11 +108,11 @@ int main() { dim3 dimBlock = dim3(1); dim3 dimGrid = dim3(1); int numBlocks = 0; - uint workgroups[2] = {32, 64}; + uint workgroups[4] = {32, 64, 128, 256}; system_clock::time_point start = system_clock::now(); - for (uint i = 0; i < 2; ++i) { + for (uint i = 0; i < 4; ++i) { dimBlock.x = workgroups[i]; // Calculate the device occupancy to know how many blocks can be run concurrently