currently we have issues bc cuda package ships with the whole cuda library that weights approx 400Mo and this exceeds the pip package size limit of 100 Mo.
Hence deploy jobs of aidge_backend_cuda fails: 6971fe6c
The less costful option (delete repairwheel command from cibuildwheel ) doesn't work : librarie are not found by the package when importing the pckg built inncibuildwheel.
λ ldd aidge_backend_cuda.cpython-38-x86_64-linux-gnu.so linux-vdso.so.1 (0x00007ffca939f000) libcublas.so.11 => not found libcublasLt.so.11 => not found libcudnn.so.9 => /lib/x86_64-linux-gnu/libcudnn.so.9 (0x00007b88ebe00000) libcudart.so.11.0 => not found libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007b88ec97a000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007b88ec975000) librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007b88ec970000) libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007b88eba00000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007b88ec319000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007b88ec950000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007b88eb600000) /lib64/ld-linux-x86-64.so.2 (0x00007b88ec9a3000)
We can see that the linker is looking for libraries with specific versions that do not exist in my computer :
I will try to run cibuildwheel with cudart versions that stick to my computer and see if it works. If so, specific vesions of cuda, cudart & cublas will be required to install packages.
Currently I'm trying to NOT bundle nvidia in the library. Simply unzipping the wheel & deleting the library wouldn't do the trick because library names are MODIFIED to avoid shadowing.
I would need to change the path of the linked libraries.
If your build is linking into a native library dependency, you can build/install that in CIBW_BEFORE_ALL. However, on Linux, Mac (and Windows if you're using delvewheel), the library that you install will be bundled into the wheel in the repair step. So take care to ensure that