From f04655ff6e5da0d211f50b26121398fa24fbc7b7 Mon Sep 17 00:00:00 2001 From: Siu Chi Chan Date: Thu, 29 Nov 2018 11:38:34 -0500 Subject: [PATCH] Revert "Handle (odd) corner case of argumentless __global__ function." This reverts commit 591d4d1b5ff6d147ac293a3527dc252b868dd5b8. [ROCm/hip commit: aeca2c8cdcef36ebd5dab47dc23aa3a8c6f65e12] --- projects/hip/include/hip/hcc_detail/functional_grid_launch.hpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/projects/hip/include/hip/hcc_detail/functional_grid_launch.hpp b/projects/hip/include/hip/hcc_detail/functional_grid_launch.hpp index 5edddad6c5..ba9929c0a6 100644 --- a/projects/hip/include/hip/hcc_detail/functional_grid_launch.hpp +++ b/projects/hip/include/hip/hcc_detail/functional_grid_launch.hpp @@ -102,8 +102,6 @@ inline std::vector make_kernarg( static_assert(sizeof...(Formals) == sizeof...(Actuals), "The count of formal arguments must match the count of actuals."); - if (sizeof...(Formals) == 0) return {}; - const auto it = function_names().find( reinterpret_cast(kernel));