Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
51c31bc1
Unverified
Commit
51c31bc1
authored
Mar 29, 2024
by
Simon Mo
Committed by
GitHub
Mar 30, 2024
Browse files
CMake build elf without PTX (#3739)
parent
3ad438c6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
cmake/utils.cmake
cmake/utils.cmake
+4
-1
No files found.
cmake/utils.cmake
View file @
51c31bc1
...
@@ -240,9 +240,12 @@ macro(override_gpu_arches GPU_ARCHES GPU_LANG GPU_SUPPORTED_ARCHES)
...
@@ -240,9 +240,12 @@ macro(override_gpu_arches GPU_ARCHES GPU_LANG GPU_SUPPORTED_ARCHES)
endif
()
endif
()
if
(
_SM
)
if
(
_SM
)
set
(
_VIRT
""
)
# -real suffix let CMake to only generate elf code for the kernels.
# we want this, otherwise the added ptx (default) will increase binary size.
set
(
_VIRT
"-real"
)
set
(
_CODE_ARCH
${
_SM
}
)
set
(
_CODE_ARCH
${
_SM
}
)
else
()
else
()
# -virtual suffix let CMake to generate ptx code for the kernels.
set
(
_VIRT
"-virtual"
)
set
(
_VIRT
"-virtual"
)
set
(
_CODE_ARCH
${
_CODE
}
)
set
(
_CODE_ARCH
${
_CODE
}
)
endif
()
endif
()
...
...
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