Open seafolk-cn opened 2 years ago
@seafolk-cn most probably libtorch binaries are not suitable for your architecture. As a solution you can try to build pytorch from source and thus build libtorch binaries and finally build vision binaries. Here is a pointer on how to build pytorch from source:
HTH
Hello! I am facing the same error on my Jetson Nano, I already have precompiled binaries for Libtorch which I've tested to be working with a sample program I made to run Yolov5 on my nano. Unfortunately while trying to build the torchvision library I get a linking error that says:
/home/user/pytorch/torch/lib/libtorch.so: error adding symbols: File in wrong format
What I understand is that if the Libtorch binaries are able to run on the device, then the architecture is correct? Please let me know if you'd like any additional information/logs.
I tried compilation with both -DWITH_CUDA=on too
Hi pal, i faced same problem, have you solved it?
Hello Guys,
I'm getting below error while trying to compile torchvision on linux on IBM z14 machine. Could anyone help have a look on this?
My env:
redhat 8.4 on IBM LinuxONE gcc (GCC) 8.4.1 20200928 (Red Hat 8.4.1-1)
command sequence to compile:
wget https://download.pytorch.org/libtorch/nightly/cpu/libtorch-shared-with-deps-latest.zip unzip libtorch-shared-with-deps-latest.zip
git clone git://github.com/pytorch/vision.git cd vision mkdir build cd build
Add -DWITH_CUDA=on support for the CUDA if needed
cmake -DCMAKE_PREFIX_PATH=$PWD/../../libtorch .. make make install
cmake and make logs: