Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
9f21e754
"graphbolt/vscode:/vscode.git/clone" did not exist on "78df81015a9a6cdaa4843167b1d000f4ca377ca9"
Unverified
Commit
9f21e754
authored
May 01, 2025
by
Johnny
Committed by
GitHub
Apr 30, 2025
Browse files
add Thor & Spark (#5915)
parent
7bcd8b1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
sgl-kernel/CMakeLists.txt
sgl-kernel/CMakeLists.txt
+11
-2
No files found.
sgl-kernel/CMakeLists.txt
View file @
9f21e754
...
@@ -22,7 +22,9 @@ find_package(CUDAToolkit REQUIRED)
...
@@ -22,7 +22,9 @@ find_package(CUDAToolkit REQUIRED)
set_property
(
GLOBAL PROPERTY CUDA_SEPARABLE_COMPILATION ON
)
set_property
(
GLOBAL PROPERTY CUDA_SEPARABLE_COMPILATION ON
)
message
(
STATUS
"Detected CUDA_VERSION=
${
CUDA_VERSION
}
"
)
message
(
STATUS
"Detected CUDA_VERSION=
${
CUDA_VERSION
}
"
)
if
(
"
${
CUDA_VERSION
}
"
VERSION_GREATER_EQUAL
"12.8"
)
if
(
"
${
CUDA_VERSION
}
"
VERSION_GREATER_EQUAL
"13.0"
)
message
(
"CUDA_VERSION
${
CUDA_VERSION
}
>= 13.0"
)
elseif
(
"
${
CUDA_VERSION
}
"
VERSION_GREATER_EQUAL
"12.8"
)
message
(
"CUDA_VERSION
${
CUDA_VERSION
}
>= 12.8"
)
message
(
"CUDA_VERSION
${
CUDA_VERSION
}
>= 12.8"
)
elseif
(
"
${
CUDA_VERSION
}
"
VERSION_GREATER_EQUAL
"12.4"
)
elseif
(
"
${
CUDA_VERSION
}
"
VERSION_GREATER_EQUAL
"12.4"
)
message
(
"CUDA_VERSION
${
CUDA_VERSION
}
>= 12.4"
)
message
(
"CUDA_VERSION
${
CUDA_VERSION
}
>= 12.4"
)
...
@@ -128,9 +130,16 @@ option(SGL_KERNEL_ENABLE_FP8 "Enable FP8" ON)
...
@@ -128,9 +130,16 @@ option(SGL_KERNEL_ENABLE_FP8 "Enable FP8" ON)
option
(
SGL_KERNEL_ENABLE_FP4
"Enable FP4"
OFF
)
option
(
SGL_KERNEL_ENABLE_FP4
"Enable FP4"
OFF
)
option
(
SGL_KERNEL_ENABLE_FA3
"Enable FA3"
OFF
)
option
(
SGL_KERNEL_ENABLE_FA3
"Enable FA3"
OFF
)
if
(
"
${
CUDA_VERSION
}
"
VERSION_GREATER_EQUAL
"12.8"
OR SGL_KERNEL_ENABLE_SM100A
)
if
(
"
${
CUDA_VERSION
}
"
VERSION_GREATER_EQUAL
"13.0"
OR SGL_KERNEL_ENABLE_SM100A
)
list
(
APPEND SGL_KERNEL_CUDA_FLAGS
"-gencode=arch=compute_100,code=sm_110"
"-gencode=arch=compute_100a,code=sm_110a"
)
elseif
(
"
${
CUDA_VERSION
}
"
VERSION_GREATER_EQUAL
"12.8"
OR SGL_KERNEL_ENABLE_SM100A
)
list
(
APPEND SGL_KERNEL_CUDA_FLAGS
list
(
APPEND SGL_KERNEL_CUDA_FLAGS
"-gencode=arch=compute_100,code=sm_100"
"-gencode=arch=compute_100,code=sm_100"
"-gencode=arch=compute_100,code=sm_101"
"-gencode=arch=compute_100,code=sm_101a"
"-gencode=arch=compute_100a,code=sm_100a"
"-gencode=arch=compute_100a,code=sm_100a"
"-gencode=arch=compute_120,code=sm_120"
"-gencode=arch=compute_120,code=sm_120"
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment