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
ac80f4da
Unverified
Commit
ac80f4da
authored
Jul 09, 2025
by
Chunyuan WU
Committed by
GitHub
Jul 09, 2025
Browse files
[CPU] [FP8] set SGLANG_CPU_FP8_CVT_FTZ in CMakeLists.txt (#7885)
parent
d487555f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
sgl-kernel/csrc/cpu/CMakeLists.txt
sgl-kernel/csrc/cpu/CMakeLists.txt
+9
-0
No files found.
sgl-kernel/csrc/cpu/CMakeLists.txt
View file @
ac80f4da
...
@@ -58,6 +58,15 @@ endif()
...
@@ -58,6 +58,15 @@ endif()
file
(
GLOB SOURCES
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/*.cpp"
)
file
(
GLOB SOURCES
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/*.cpp"
)
if
(
NOT DEFINED ENV{SGLANG_CPU_FP8_CVT_FTZ}
)
set
(
ENV{SGLANG_CPU_FP8_CVT_FTZ}
"1"
)
endif
()
if
(
"$ENV{SGLANG_CPU_FP8_CVT_FTZ}"
STREQUAL
"1"
)
message
(
STATUS
"Enabling macro: SGLANG_CPU_FP8_CVT_FTZ"
)
add_compile_definitions
(
SGLANG_CPU_FP8_CVT_FTZ
)
endif
()
add_compile_options
(
add_compile_options
(
-O3
-O3
-Wno-unknown-pragmas
-Wno-unknown-pragmas
...
...
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