We are trying to include libtorch to our Yocto-based distribution. Unfortunately, compiling from source has been a hurdle. Specifically, the build system does not really play well with this CMake - Python combo.
Any chance there’s a pytorch or libtorch available by the community already?
I’m not sure, what Yocto is and if it helps, but you can download libtorch (with different CUDA libs) from the website without building it from source.
My apologies, I took too much domain-specific (embedded Linux) knowledge for granted. Let me rephrase:
I am looking for a pytorch/libtorch bitbake recipe which would compile libtorch from source and allow me to include it in our (embedded Linux) distribution.
Additionally, such a recipe would allow libtorch to be available across all platforms/hardware and architectures supported by the Yocto build system, thus facilitating the deployment of, pytorch, edge computing applications.
I eventually resorted in compiling libtorch myself and using it as a pre-built shared library.
Of course I was lucky that our platform was an x86. I wouldn’t want to think what would happen were we using an ARM or something instead.