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
dbb2e382
Commit
dbb2e382
authored
May 12, 2024
by
zhuwenwen
Browse files
update cmake args
parent
35393439
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
5 deletions
+3
-5
CMakeLists.txt
CMakeLists.txt
+1
-1
cmake/utils.cmake
cmake/utils.cmake
+2
-1
setup.py
setup.py
+0
-3
No files found.
CMakeLists.txt
View file @
dbb2e382
...
...
@@ -16,7 +16,7 @@ set(PYTHON_SUPPORTED_VERSIONS "3.8" "3.9" "3.10" "3.11")
set
(
CUDA_SUPPORTED_ARCHS
"7.0;7.5;8.0;8.6;8.9;9.0"
)
# Supported AMD GPU architectures.
set
(
HIP_SUPPORTED_ARCHS
"gfx908;gfx90a;gfx942;gfx
92
6;gfx92
8
;gfx
1100
"
)
set
(
HIP_SUPPORTED_ARCHS
"gfx908;gfx90a;gfx942;gfx
1100;gfx90
6;gfx92
6
;gfx
928
"
)
#
# Supported/expected torch versions for CUDA/ROCm.
...
...
cmake/utils.cmake
View file @
dbb2e382
...
...
@@ -114,7 +114,8 @@ function (get_torch_gpu_compiler_flags OUT_GPU_FLAGS GPU_LANG)
"-DUSE_ROCM"
"-U__HIP_NO_HALF_CONVERSIONS__"
"-U__HIP_NO_HALF_OPERATORS__"
"-fno-gpu-rdc"
)
"-fno-gpu-rdc"
"--gpu-max-threads-per-block=1024"
)
endif
()
set
(
${
OUT_GPU_FLAGS
}
${
GPU_FLAGS
}
PARENT_SCOPE
)
...
...
setup.py
View file @
dbb2e382
...
...
@@ -117,9 +117,6 @@ class cmake_build_ext(build_ext):
'-DCMAKE_LIBRARY_OUTPUT_DIRECTORY={}'
.
format
(
outdir
),
'-DCMAKE_ARCHIVE_OUTPUT_DIRECTORY={}'
.
format
(
self
.
build_temp
),
]
if
_is_hip
:
cmake_args
+=
[
'--gpu-max-threads-per-block=1024'
]
verbose
=
bool
(
int
(
os
.
getenv
(
'VERBOSE'
,
'0'
)))
if
verbose
:
...
...
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