split the library into small pieces if need
In #1734, when user compile ginkgo into several architectures, there will be too many symbols/references in one library.
Thus, we need to split it to different library and link later.
If someone knows nvcc specific flag to solve this issue, please let me know.
The default behavior stay the same as the previous one unless if user set GINKGO_SPLIT_LIBRARY_NUM > 1.
AFAIR, @nbeams mentioned that the number of libraries now in Ginkgo already gives some pain for project.
It is another reason to keep the original behavior if they do not encounter the issue.
TODO:
- [ ] if the approach is acceptable, apply it to the other parts.
Error: The following files need to be formatted:
dpcpp/preconditioner/isai_kernels.dp.cpp
dpcpp/preconditioner/jacobi_generate_instantiate.inc.dp.cpp
You can find a formatting patch under Artifacts here or run format! if you have write access to Ginkgo
we might only support this after cuda 12.4 because the thrust issue between different shared library inspired by #1929