Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
# CUDA / ROCm specific
# -------------------------------------------------
if IS_HIP:
archs = os.getenv("GPU_ARCHS", "native").split(";")
archs = os.getenv("GPU_ARCHS", "gfx942").split(";")
nvcc_flags += [f"--offload-arch={arch}" for arch in archs]
else:
# CUDA only
Expand Down Expand Up @@ -115,14 +115,14 @@
],
extra_compile_args={
"cxx": cxx_flags,
"nvcc": nvcc_flags + [
"nvcc": nvcc_flags + ([] if IS_HIP else [
# The following definitions must be undefined
# since we need half-precision operation.
"--extended-lambda",
"-U__CUDA_NO_HALF_OPERATORS__",
"-U__CUDA_NO_HALF_CONVERSIONS__",
"-U__CUDA_NO_HALF2_OPERATORS__",
],
]),
},
),

Expand Down
Loading