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

| #error C++17 or later compatible compiler is required to use ATen. #255

Open
YangPH0624 opened this issue Oct 10, 2024 · 0 comments
Open

Comments

@YangPH0624
Copy link

4 | #error C++17 or later compatible compiler is required to use PyTorch.
| ^~~~~
In file included from /home/ps/miniconda3/envs/diffdock/lib/python3.9/site-packages/torch/include/ATen/core/TensorBase.h:14,
from /home/ps/miniconda3/envs/diffdock/lib/python3.9/site-packages/torch/include/ATen/core/TensorBody.h:38,
from /home/ps/miniconda3/envs/diffdock/lib/python3.9/site-packages/torch/include/ATen/core/Tensor.h:3,
from /home/ps/miniconda3/envs/diffdock/lib/python3.9/site-packages/torch/include/ATen/Tensor.h:3,
from /home/ps/miniconda3/envs/diffdock/lib/python3.9/site-packages/torch/include/torch/csrc/autograd/function_hook.h:3,
from /home/ps/miniconda3/envs/diffdock/lib/python3.9/site-packages/torch/include/torch/csrc/autograd/cpp_hook.h:2,
from /home/ps/miniconda3/envs/diffdock/lib/python3.9/site-packages/torch/include/torch/csrc/autograd/variable.h:6,
from /home/ps/miniconda3/envs/diffdock/lib/python3.9/site-packages/torch/include/torch/csrc/autograd/autograd.h:3,
from /home/ps/miniconda3/envs/diffdock/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/autograd.h:3,
from /home/ps/miniconda3/envs/diffdock/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/all.h:7,
from /home/ps/miniconda3/envs/diffdock/lib/python3.9/site-packages/torch/include/torch/extension.h:5,
from openfold/utils/kernel/csrc/softmax_cuda_kernel.cu:18:
/home/ps/miniconda3/envs/diffdock/lib/python3.9/site-packages/torch/include/c10/util/C++17.h:24:2: error: #error You need C++17 to compile PyTorch
24 | #error You need C++17 to compile PyTorch
| ^~~~~
In file included from /home/ps/miniconda3/envs/diffdock/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/ps/miniconda3/envs/diffdock/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/ps/miniconda3/envs/diffdock/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/ps/miniconda3/envs/diffdock/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:4,
from /home/ps/miniconda3/envs/diffdock/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/ps/miniconda3/envs/diffdock/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/ps/miniconda3/envs/diffdock/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/all.h:9,
from /home/ps/miniconda3/envs/diffdock/lib/python3.9/site-packages/torch/include/torch/extension.h:5,
from openfold/utils/kernel/csrc/softmax_cuda_kernel.cu:18:
/home/ps/miniconda3/envs/diffdock/lib/python3.9/site-packages/torch/include/ATen/ATen.h:4:2: error: #error C++17 or later compatible compiler is required to use ATen.
4 | #error C++17 or later compatible compiler is required to use ATen.
| ^~~~~
error: command '/usr/local/cuda-12.2/bin/nvcc' failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for openfold
Running setup.py clean for openfold
Failed to build openfold
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (openfold)

My CUDA version is 12.2 and pytorch is 12.4, how to deal with the above errors?

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

1 participant