Libtorch C++ *.so files truncated error when ldconfig

(MarchM) #1

I am trying to add libtorch C++ shared library to system library path, as shown below

root@:/etc#cat ld.so.conf.d/local.conf 
/usr/local/torch_lib
root@:/etc#
root@:/etc#
root@:/etc#cat ld.so.conf
include ld.so.conf.d/*.conf

It gives lots of truncated errors. How shall this be fixed? I tried both the officially provided libtorch C++ library and my own built libtorch C++

ldconfig: file /usr/local/torch_lib/libc10_cuda.so is truncated

ldconfig: file /usr/local/torch_lib/libcaffe2_detectron_ops_gpu.so is truncated

ldconfig: file /usr/local/torch_lib/libthnvrtc.so is truncated

ldconfig: file /usr/local/torch_lib/libcudart-f7fdd8d7.so.9.0 is truncated

ldconfig: file /usr/local/torch_lib/libnvrtc-builtins.so is truncated

ldconfig: file /usr/local/torch_lib/libnvToolsExt-3965bdd0.so.1 is truncated

ldconfig: file /usr/local/torch_lib/libnvrtc-007d19c9.so.9.0 is truncated

ldconfig: file /usr/local/torch_lib/libgomp-4f651535.so.1 is truncated
1 Like
(Jason Juang) #2

I encountered the same problem. Were you able to figure out a way to fix this?

(MarchM) #3

not yet. I switch to other approaches. This issue is waiting for pytorch folks to help out.