NVIDIA / cuda-python

CUDA Python Low-level Bindings
https://nvidia.github.io/cuda-python/
Other
859 stars 68 forks source link

Option to link statically against `libnvrtc_static.a`. #13

Open chr1sj0nes opened 2 years ago

chr1sj0nes commented 2 years ago

It would be great if it was possible to link against NVRTC statically.

leofang commented 3 months ago

Sorry for lack of response @chr1sj0nes. Your ask implies you want to build cuda-python from source yourself. May I ask why?

chr1sj0nes commented 3 months ago

Within Google we build everything from source.

leofang commented 3 months ago

Within Google we build everything from source.

Yes, so I was told 🙂 But, I was also told that Google maintains a fork of the whole universe internally (and patch them as needed). Since NVRTC APIs are dlopen'd, it should be possible to patch setup.py with appropriate flags in your internal fork.

Currently we're hesitant to support this feature because of two reasons:

  1. We rely on public PyPI to deliver software, and we must do everything we can to avoid generating over-sized wheels. Static linking simply does not play well with the constraints we're facing.
  2. We do not have enough bandwidth to develop/maintain/test this additional option (and because of 1 we would basically treat this option as nonexistent)