From 685a5738a7b09faacc786e77f2a2ecfb5c9d6cea Mon Sep 17 00:00:00 2001 From: Trevor Morris Date: Fri, 24 Jan 2025 03:59:47 -0800 Subject: [PATCH] Allow local cutlass directory to be used in sgl-kernel build (#3037) --- sgl-kernel/setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sgl-kernel/setup.py b/sgl-kernel/setup.py index d60167435..cf3c6a563 100644 --- a/sgl-kernel/setup.py +++ b/sgl-kernel/setup.py @@ -39,6 +39,8 @@ def _get_version(): cutlass = root / "3rdparty" / "cutlass" +cutlass_default = root / "3rdparty" / "cutlass" +cutlass = Path(os.environ.get("CUSTOM_CUTLASS_SRC_DIR", default=cutlass_default)) flashinfer = root / "3rdparty" / "flashinfer" include_dirs = [ cutlass.resolve() / "include",