New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building with -DENABLE_CUDA=NO -DNSTATIC=YES still builds static and CUDA libraries #308
Comments
Something is inconsistent:
and
|
What does it look like with |
Wait, it seems actually building and shipping empty CUDA-named libraries when CUDA is not enabled is not a bug, but a feature: 788eee6 🤯 |
This is probably a duplicate of #285. |
Part is indeed duplicate. Part is not: in any case, static libraries should not be built. |
Thanks for the feedback. The static issue should now be resolved in SuiteSparse v7.1.0. I'm working on the empty-cuda library issue. That was a workaround for a build issue I had, where I couldn't get my internal tests to work without building the empty cholmod_cuda.so and spqr_cuda.so libraries. I'm trying to fix that; see #285. I think I can close this as a duplicate of #285, now that the other part is resolved, but let me know if you see something here that isn't covered by #285. |
I think this is now resolved on the latest dev2 branch. Testing it now to make sure that's the case. |
OK -- this is now fixed in the dev2 branch, which will shortly become SuiteSparse v7.2.0.beta. The only minor remaining issue is that if you don't have CUDA, and you build the SuiteSparse_GPURuntime or GPUQREngine libraries, then something gets built (libraries with nothing in them). That's odd, of course; it would be better not to create them at all. However, if you don't have CUDA, none of the other libraries will link against those to libraries (SPQR, specifically, which is the only one that uses those 2 libraries). Those 2 libraries are built by the top-level Makefile, with a mere "make". But that top-level Makefile is optional anyway. I'm guessing a linux distro packaging mechanism would just use each individual CMake build system for each library, and then that mechanism could just skip building those libraries if CUDA is not available or not desired. Two of the libraries that are subdirectories in CHOLMOD or SPQR (CHOLMOD_CUDA and SPQR_CUDA) are not built at all. So this issue is essentially resolved now, and now I think I can close this issue. If there's something I'm missing I can reopen it, or a new issue could be posted. Just let me know. Thanks again for the feedback. |
Describe the bug
Building with
-DENABLE_CUDA=NO -DNSTATIC=YES
still some CUDA libraries, including static ones, for libcholmod and libspqr:To Reproduce
Build is performed on julia's Yggdrasil: JuliaPackaging/Yggdrasil#6296
cmake flags are:
Expected behavior
No CUDA, no static libraries.
Desktop (please complete the following information):
Occurs on both Linux and macOS (all versions tested).
The text was updated successfully, but these errors were encountered: