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); }