CUDA libraries are too big for pypi
context
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
First mentionned here : aidge#79 (comment 2831786)
Solutions
The official solution is to dynamically load cuda library.
- Here is an extensive tutorial on how to do that: https://www.devxperiences.com/pzwp1/2023/05/17/c-dynamic-loading-of-a-shared-library-also-create-and-load-one-on-your-own/
- stack overflow example : https://stackoverflow.com/questions/68977087/c-how-to-use-dlopen-in-c
another less costful option
delete repairwheel command from cibuildwheel to avoid having auditwheel pickupd cuda & cublad libraries and add them to the .whl
generated package.
Edited by Grégoire Kubler