Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arch_list[-1] += '+PTX' IndexError: list index out of range #55

Open
derrick-xwp opened this issue Feb 28, 2023 · 2 comments
Open

arch_list[-1] += '+PTX' IndexError: list index out of range #55

derrick-xwp opened this issue Feb 28, 2023 · 2 comments

Comments

@derrick-xwp
Copy link

export CUDA_VISIBLE_DEVICES=0 && python run.py --config configs/nerf/materials_dense_200.py --render_test

No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda-11.4'
/home/comp/enter/envs/dvg/lib/python3.7/site-packages/mmcv/init.py:21: UserWarning: On January 1, 2023, MMCV will release v2.0.0, in which it will remove components related to the training process and add a data transformation module. In addition, it will rename the package names mmcv to mmcv-lite and mmcv-full to mmcv. See https://github.com/open-mmlab/mmcv/blob/master/docs/en/compatibility.md for more details.
'On January 1, 2023, MMCV will release v2.0.0, in which it will remove '
Using /home/comp.cache/torch_extensions/py37_cpu as PyTorch extensions root...
Detected CUDA files, patching ldflags
Emitting ninja build file /home/comp/.cache/torch_extensions/py37_cpu/adam_upd_cuda/build.ninja...
Traceback (most recent call last):
File "run.py", line 13, in
from lib import utils, dvgo, dcvgo, dmpigo
File "/home/comp/DirectVoxGO/lib/utils.py", line 11, in
from .masked_adam import MaskedAdam
File "/home/comp/DirectVoxGO/lib/masked_adam.py", line 10, in
verbose=True)
File "/home/comp/enter/envs/dvg/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1219, in load
keep_intermediates=keep_intermediates)
File "/home/comp/enter/envs/dvg/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1440, in _jit_compile
is_standalone=is_standalone)
File "/home/comp/enter/envs/dvg/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1538, in _write_ninja_file_and_build_library
is_standalone=is_standalone)
File "/home/comp/enter/envs/dvg/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1927, in _write_ninja_file_to_build_library
cuda_flags = common_cflags + COMMON_NVCC_FLAGS + _get_cuda_arch_flags()
File "/home/comp/enter/envs/dvg/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1699, in _get_cuda_arch_flags
arch_list[-1] += '+PTX'
IndexError: list index out of range

@cmy76
Copy link

cmy76 commented May 11, 2023

I encoutered the same problem, and I found out that my torch is CPU version😂

@zhouilu
Copy link

zhouilu commented Sep 14, 2023

try like
export TORCH_CUDA_ARCH_LIST="8.6"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants