From 9938edb63602bb2059a158cec368b4bbc97c6d4a 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... --- src/functional_grid_launch.inl | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/src/functional_grid_launch.inl b/src/functional_grid_launch.inl index 336bb5d121..6283d1aaba 100644 --- a/src/functional_grid_launch.inl +++ b/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); } }