This issue is related with pytorch/pytorch#53825
When build pytorch static library, as a third party repo of pytorch, the libfoxi_loader.a can be generated, but missing in CMAKE_INSTALL_LIBDIR.
After build with command:
cmake --build . --target install -- "-j8"
In the build dir, we have:
root@build_libtorch:/gemfield/github/build# find . -name "*.a" | grep foxi
./lib/libfoxi_loader.a
root@build_libtorch:/gemfield/github/build#
In the install dir, we have:
root@build_libtorch:/gemfield/github/libtorch_cuda/lib# find . -name "*.a" | wc -l
25
root@build_libtorch:/gemfield/github/libtorch_cuda/lib# find . -name "*.a" | grep foxi
root@build_libtorch:/gemfield/github/libtorch_cuda/lib#