From fbfddfd5c7dcdf01903c2696d75f72caf334f324 Mon Sep 17 00:00:00 2001 From: Kevin Li <32230403+bluecoffee8@users.noreply.github.com> Date: Tue, 19 May 2026 00:23:52 -0700 Subject: [PATCH] fix (jit kernel): elementwise activation C++ error (#25695) --- python/sglang/jit_kernel/csrc/elementwise/activation.cuh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/sglang/jit_kernel/csrc/elementwise/activation.cuh b/python/sglang/jit_kernel/csrc/elementwise/activation.cuh index 1396eb5a9..19ac69f0f 100644 --- a/python/sglang/jit_kernel/csrc/elementwise/activation.cuh +++ b/python/sglang/jit_kernel/csrc/elementwise/activation.cuh @@ -93,14 +93,14 @@ struct ActivationKernel { template static auto select_kernel(const std::string& type) - -> decltype(activation_kernel) { + -> decltype(ActivationKernel::template activation_kernel) { using namespace host; if (type == "silu") { - return activation_kernel; + return ActivationKernel::template activation_kernel; } else if (type == "gelu") { - return activation_kernel; + return ActivationKernel::template activation_kernel; } else if (type == "gelu_tanh") { - return activation_kernel; + return ActivationKernel::template activation_kernel; } else { Panic("unsupported activation type: ", type); }