Hi,
I’m looking to pursue contributing to PyTorch and as part of this i’m looking to set up the environment.
As a first step, i’m looking to build from source locally.
I have tried multiple ways of doing this job.
- On a fresh ec2 instance with ubuntu 22.04 image
- On my personal work station with rtx 4090
- On my personal laptop with RTX 5000 using wsl and docker.
Each time im seeing some issues.
One standard issue i’m seeing is that the build is failing with this error
[2309/2331] Linking CXX executable bin/torch_shm_manager
FAILED: bin/torch_shm_manager
: && /usr/bin/g++ -D_GLIBCXX_USE_CXX11_ABI=1 -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -DUSE_KINETO -DLIBKINETO_NOROCTRACER -DLIBKINETO_NOXPUPTI=ON -DUSE_X86_SIMD_SORT -DXSS_USE_OPENMP -DUSE_PYTORCH_QNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -O2 -fPIC -Wall -Wextra -Werror=return-type -Werror=non-virtual-dtor -Werror=bool-operation -Wnarrowing -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-unused-parameter -Wno-strict-overflow -Wno-strict-aliasing -Wno-stringop-overflow -Wsuggest-override -Wno-psabi -Wno-error=old-style-cast -Wno-missing-braces -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-stringop-overflow -DHAVE_AVX512_CPU_DEFINITION -DHAVE_AVX2_CPU_DEFINITION -g -fno-omit-frame-pointer -O0 -L/opt/conda/lib/ -rdynamic -Wl,–no-as-needed caffe2/torch/lib/libshm/CMakeFiles/torch_shm_manager.dir/manager.cpp.o -o bin/torch_shm_manager -Wl,-rpath,/workspaces/pytorch/build/lib: lib/libshm.so -lrt lib/libc10.so -Wl,-rpath-link,/workspaces/pytorch/build/lib && /opt/conda/bin/cmake -E __run_co_compile --lwyu=“ldd;-u;-r” --source=bin/torch_shm_manager && :
/usr/bin/ld: warning: libopenblas.so.0, needed by /workspaces/pytorch/build/lib/libtorch_cpu.so, not found (try using -rpath or -rpath-link)
I tried following the dev container way as well as the local conda environment.
I also matched the CUDA version inside the dev container to the driver i had.
Any help is appreciated.
Here is the google drive link for the full log
Thanks in Advance,
Venkat