mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-20 06:10:34 +08:00
CI fixes (#1676)
Summary: Pull Request resolved: https://github.com/facebookresearch/pytorch3d/pull/1676 Remove CUDA 10.2 build, remove sm35 from cuda12. Reviewed By: MichaelRamamonjisoa Differential Revision: D50790929 fbshipit-source-id: 2b8cd34493b633a97b4066e0fd61aff077f7ce0c
This commit is contained in:
committed by
Facebook GitHub Bot
parent
03f17ca1ea
commit
6b437e21a6
@@ -50,7 +50,6 @@ def setup_cuda():
|
||||
os.environ["FORCE_CUDA"] = "1"
|
||||
|
||||
basic_nvcc_flags = (
|
||||
"-gencode=arch=compute_35,code=sm_35 "
|
||||
"-gencode=arch=compute_50,code=sm_50 "
|
||||
"-gencode=arch=compute_60,code=sm_60 "
|
||||
"-gencode=arch=compute_70,code=sm_70 "
|
||||
@@ -58,10 +57,11 @@ def setup_cuda():
|
||||
"-gencode=arch=compute_50,code=compute_50"
|
||||
)
|
||||
if CU_VERSION == "cu102":
|
||||
nvcc_flags = basic_nvcc_flags
|
||||
nvcc_flags = "-gencode=arch=compute_35,code=sm_35 " + basic_nvcc_flags
|
||||
elif CU_VERSION < ("cu118"):
|
||||
nvcc_flags = (
|
||||
"-gencode=arch=compute_80,code=sm_80 "
|
||||
"-gencode=arch=compute_35,code=sm_35 "
|
||||
+ "-gencode=arch=compute_80,code=sm_80 "
|
||||
+ "-gencode=arch=compute_86,code=sm_86 "
|
||||
+ basic_nvcc_flags
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user