diff --git a/python/sglang/kernels/jit/include/sgl_kernel/runtime.cuh b/python/sglang/kernels/jit/include/sgl_kernel/runtime.cuh index 208292ec7c..44e61ee505 100644 --- a/python/sglang/kernels/jit/include/sgl_kernel/runtime.cuh +++ b/python/sglang/kernels/jit/include/sgl_kernel/runtime.cuh @@ -32,6 +32,12 @@ #ifndef cudaDevAttrComputeCapabilityMinor #define cudaDevAttrComputeCapabilityMinor hipDeviceAttributeComputeCapabilityMinor #endif +#ifndef cudaDevAttrMaxSharedMemoryPerBlock +#define cudaDevAttrMaxSharedMemoryPerBlock hipDeviceAttributeMaxSharedMemoryPerBlock +#endif +#ifndef cudaDevAttrMaxSharedMemoryPerBlockOptin +#define cudaDevAttrMaxSharedMemoryPerBlockOptin hipDeviceAttributeSharedMemPerBlockOptin +#endif #ifndef cudaRuntimeGetVersion #define cudaRuntimeGetVersion hipRuntimeGetVersion #endif