| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
@umar456 any way for afcuda to dynload such nvidia libs only if needed (especially cufft, ...)? |
Sorry, something went wrong.
|
It could be done but would require a good bit of work. We have done this for other libraries but not for things like cublas and cufft. |
Sorry, something went wrong.
|
This is unfortunate, is this still the same with CUDA 11.6 ? |
Sorry, something went wrong.
ArrayFire's CUDA backend linked against the CUDA numeric libraries staticly before this change. This caused the libafcuda library to be in the 1.1GB range for CUDA 11.5 even if you were targeting one compute capability. This is partially due to the fact that the linker does not remove the compute capabilities of older architectures when linking. One way around this would be to use nvprune to remove the architectures that are not being used by the compute cability when building. This approach is not yet implemented. This commit will revert back to dynamically linking the CUDA numeric libraries by default. You can still select the old behavior by setting the AF_WITH_STATIC_CUDA_NUMERIC_LIBS option in CMake
| Back | FazBrowse Home | New Git URL |
Dynamically link CUDA numeric libraries instead of always staticly linking.
Description
ArrayFire's CUDA backend linked against the CUDA numeric libraries
staticly before this change. This caused the libafcuda library to be
in the 1.1GB range for CUDA 11.5 even if you were targeting one compute
capability. This is partially due to the fact that the linker does not
remove the compute capabilities of older architectures when linking.
One way around this would be to use nvprune to remove the architectures
that are not being used by the compute cability when building. This
approach is not yet implemented.
This commit will revert back to dynamically linking the CUDA numeric
libraries by default. You can still select the old behavior by setting
the AF_WITH_STATIC_CUDA_NUMERIC_LIBS option in CMake
Changes to Users
Then binary sizes are significantly smaller but requires you to have
the cuda libraries in the library paths. This is only an issue when building
installers.
Checklist