From 653c7c24f42a75ae4afdeeea5676d67b770d738f Mon Sep 17 00:00:00 2001 From: Alex Voicu Date: Tue, 17 Jul 2018 14:04:57 +0100 Subject: [PATCH] It is unclear what I was thinking when authoring the original code... [ROCm/clr commit: 633ce36ea782150be87062474f33e9d6bea482c5] --- .../clr/hipamd/src/functional_grid_launch.inl | 28 ++++++++----------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/projects/clr/hipamd/src/functional_grid_launch.inl b/projects/clr/hipamd/src/functional_grid_launch.inl index 336bb5d121..6283d1aaba 100644 --- a/projects/clr/hipamd/src/functional_grid_launch.inl +++ b/projects/clr/hipamd/src/functional_grid_launch.inl @@ -123,21 +123,17 @@ namespace hip_impl }; } - for (auto&& agent_kernel : it0->second) { - if (agent.handle == agent_kernel.first.handle) { - hipModuleLaunchKernel( - agent_kernel.second, - numBlocks.x, - numBlocks.y, - numBlocks.z, - dimBlocks.x, - dimBlocks.y, - dimBlocks.z, - sharedMemBytes, - stream, - nullptr, - kernarg); - } - } + hipModuleLaunchKernel( + it1->second, + numBlocks.x, + numBlocks.y, + numBlocks.z, + dimBlocks.x, + dimBlocks.y, + dimBlocks.z, + sharedMemBytes, + stream, + nullptr, + kernarg); } }