From a70c642a783d312e08753377e4d3f7f93e854b0c Mon Sep 17 00:00:00 2001 From: Max Podkorytov <4273004+tenpercent@users.noreply.github.com> Date: Tue, 25 Mar 2025 11:28:44 -0700 Subject: [PATCH] use fast path for sequence generation in old CK (#1993) [ROCm/composable_kernel commit: 1a58522f01d0c16a60f48bf0af90d1160a07d94e] --- include/ck/utility/sequence.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/ck/utility/sequence.hpp b/include/ck/utility/sequence.hpp index 25dae4e335..99935a6d8d 100644 --- a/include/ck/utility/sequence.hpp +++ b/include/ck/utility/sequence.hpp @@ -256,6 +256,18 @@ struct arithmetic_sequence_gen using type = typename conditional::type; }; +template +struct arithmetic_sequence_gen<0, IEnd, 1> +{ + template + struct WrapSequence + { + using type = Sequence; + }; + // https://reviews.llvm.org/D13786 + using type = typename __make_integer_seq::type; +}; + // uniform sequence template struct uniform_sequence_gen