I am trying to install pytorch from source for development involving CUDA, however, I hit the following error on the shared object file. What am I missing?
from torch.distributed.run import main
File "/workspace/pytorch/torch/__init__.py", line 415, in <module>
from torch._C import * # noqa: F403
^^^^^^^^^^^^^^^^^^^^^^
ImportError: /workspace/pytorch/torch/lib/libtorch_python.so: undefined symbol: _ZTIN5torch8inductor28AOTIModelContainerRunnerCudaE
Also Please run the following and paste the output:
wget https://raw.githubusercontent.com/pytorch/pytorch/main/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py