| #error C++17 or later compatible compiler is required to use ATen.
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?