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
9ae6a059
Commit
9ae6a059
authored
Dec 12, 2025
by
zhuwenwen
Browse files
skip triton_kernels
parent
9fa3696b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
CMakeLists.txt
CMakeLists.txt
+1
-1
setup.py
setup.py
+2
-2
No files found.
CMakeLists.txt
View file @
9ae6a059
...
@@ -1090,7 +1090,7 @@ endif()
...
@@ -1090,7 +1090,7 @@ endif()
]]
]]
# For CUDA and HIP builds also build the triton_kernels external package.
# For CUDA and HIP builds also build the triton_kernels external package.
if
(
VLLM_GPU_LANG STREQUAL
"CUDA"
OR VLLM_GPU_LANG STREQUAL
"HIP"
)
if
(
VLLM_GPU_LANG STREQUAL
"CUDA"
)
include
(
cmake/external_projects/triton_kernels.cmake
)
include
(
cmake/external_projects/triton_kernels.cmake
)
endif
()
endif
()
...
...
setup.py
View file @
9ae6a059
...
@@ -292,7 +292,7 @@ class cmake_build_ext(build_ext):
...
@@ -292,7 +292,7 @@ class cmake_build_ext(build_ext):
os
.
makedirs
(
os
.
path
.
dirname
(
dst_file
),
exist_ok
=
True
)
os
.
makedirs
(
os
.
path
.
dirname
(
dst_file
),
exist_ok
=
True
)
self
.
copy_file
(
file
,
dst_file
)
self
.
copy_file
(
file
,
dst_file
)
if
_is_cuda
()
or
_is_hip
()
:
if
_is_cuda
():
# copy vllm/third_party/triton_kernels/**/*.py from self.build_lib
# copy vllm/third_party/triton_kernels/**/*.py from self.build_lib
# to current directory so that they can be included in the editable
# to current directory so that they can be included in the editable
# build
# build
...
@@ -727,7 +727,7 @@ if _is_cuda() or _is_hip():
...
@@ -727,7 +727,7 @@ if _is_cuda() or _is_hip():
ext_modules
.
append
(
CMakeExtension
(
name
=
"vllm.cumem_allocator"
))
ext_modules
.
append
(
CMakeExtension
(
name
=
"vllm.cumem_allocator"
))
# Optional since this doesn't get built (produce an .so file). This is just
# Optional since this doesn't get built (produce an .so file). This is just
# copying the relevant .py files from the source repository.
# copying the relevant .py files from the source repository.
ext_modules
.
append
(
CMakeExtension
(
name
=
"vllm.triton_kernels"
,
optional
=
True
))
#
ext_modules.append(CMakeExtension(name="vllm.triton_kernels", optional=True))
# if _is_hip():
# if _is_hip():
# ext_modules.append(CMakeExtension(name="vllm._rocm_C"))
# ext_modules.append(CMakeExtension(name="vllm._rocm_C"))
...
...
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