Open jamesETsmith opened 1 year ago
Thanks for the note. This is in progress in GraphBLAS (in the main SuiteSparse version, dev2 branch, https://github.com/DrTimothyAldenDavis/SuiteSparse/tree/dev2 . Once it's settled there, I'll likely revise LAGraph accordingly. LAGraph will eventually be copied into SuiteSparse and the other packages follow the strategy of either static or dynamic linking.
Sounds good, thanks for the heads up. If you want any help as you switch things over, just let me know, I'd be happy to help. I'll leave this open until things on SuiteSparse/dev2
wrap up.
General
I'm working on a team implementing the GraphBLAS standard for some custom hardware. Our build system is only ideal for statically linked libraries right now and LAGraph currently supports dynamic and static linking. By default, LAGraph links the benchmarks and tests to the dynamically linked LAGraph library which causes some problems for us. We can work around them by modifying the cmake files to link all executables to the static library instead, but that's a pretty hacky solution. I understand this is a unique situation, but it would be a handy feature if we could choose a single type of LAGraph library to compile, e.g. dynamic or static, and have all executables link to that library.
Proposal
I have two options in mind, but I'm open to other suggestions.
Next Steps
If people think this would be helpful, I'd be glad to open a PR. Just let me know!