Skip to content
Merged
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
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ requires = [
"wheel",
"packaging",
"psutil",
"ninja"
"ninja",
"scikit-build-core>=0.10",
"torch>=2.8.0",
]
build-backend = "setuptools.build_meta"

Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def should_skip_cuda_build():

@functools.lru_cache(maxsize=None)
def cuda_archs():
return os.getenv("FLASH_DMATTN_CUDA_ARCHS", "80;86,89,90;100;120").split(";")
return os.getenv("FLASH_DMATTN_CUDA_ARCHS", "80;86;89;90;100;120").split(";")


def get_platform():
Expand Down Expand Up @@ -151,6 +151,7 @@ def append_nvcc_threads(nvcc_extra_args):
if "80" in cuda_archs():
cc_flag.append("-gencode")
cc_flag.append("arch=compute_80,code=sm_80")

if CUDA_HOME is not None:
if bare_metal_version >= Version("11.8") and "86" in cuda_archs():
cc_flag.append("-gencode")
Expand Down