Skip to content
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

add option to use compiled binaries of superlu #82

Open
looooo opened this issue Jul 23, 2024 · 3 comments
Open

add option to use compiled binaries of superlu #82

looooo opened this issue Jul 23, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@looooo
Copy link

looooo commented Jul 23, 2024

conda-forge has a build for superlu:
https://anaconda.org/conda-forge/superlu

It would be nice if the cmake configuration has an option to use a installed version of superlu. Something like:

find_package(superlu)
@Bruno02468 Bruno02468 added the enhancement New feature or request label Jul 23, 2024
@Bruno02468
Copy link
Collaborator

The C-Fortran integration with SuperLU was done in a way that still requires the SuperLU source to be present... once I get rid of that, we can just link against SuperLU directly.

That's a good suggestion.

@looooo
Copy link
Author

looooo commented Jul 23, 2024

another thing that came up while trying to build mystran:
It would be nice if binaries are installed into $PREFIX/bin: install(TARGETS mystran DESTINATION${CMAKE_INSTALL_PREFIX}/bin)

Currently only the superlu libraries are installed via cmake:

Install the project...
-- Install configuration: "Release"
-- Installing: /Users/lo/projects/freecad/MYSTRAN/.pixi/envs/default/lib/pkgconfig/superlu.pc
-- Installing: /Users/lo/projects/freecad/MYSTRAN/.pixi/envs/default/lib/libsuperlu.a
-- Up-to-date: /Users/lo/projects/freecad/MYSTRAN/.pixi/envs/default/include/supermatrix.h
-- Up-to-date: /Users/lo/projects/freecad/MYSTRAN/.pixi/envs/default/include/slu_Cnames.h
-- Up-to-date: /Users/lo/projects/freecad/MYSTRAN/.pixi/envs/default/include/slu_dcomplex.h
-- Up-to-date: /Users/lo/projects/freecad/MYSTRAN/.pixi/envs/default/include/slu_scomplex.h
-- Up-to-date: /Users/lo/projects/freecad/MYSTRAN/.pixi/envs/default/include/slu_util.h
-- Up-to-date: /Users/lo/projects/freecad/MYSTRAN/.pixi/envs/default/include/superlu_enum_consts.h
-- Installing: /Users/lo/projects/freecad/MYSTRAN/.pixi/envs/default/include/superlu_config.h
-- Up-to-date: /Users/lo/projects/freecad/MYSTRAN/.pixi/envs/default/include/slu_sdefs.h
-- Up-to-date: /Users/lo/projects/freecad/MYSTRAN/.pixi/envs/default/include/slu_ddefs.h
-- Up-to-date: /Users/lo/projects/freecad/MYSTRAN/.pixi/envs/default/include/slu_cdefs.h
-- Up-to-date: /Users/lo/projects/freecad/MYSTRAN/.pixi/envs/default/include/slu_zdefs.h
-- Installing: /Users/lo/projects/freecad/MYSTRAN/.pixi/envs/default/lib/cmake/superlu/superluTargets.cmake
-- Installing: /Users/lo/projects/freecad/MYSTRAN/.pixi/envs/default/lib/cmake/superlu/superluTargets-release.cmake
-- Installing: /Users/lo/projects/freecad/MYSTRAN/.pixi/envs/default/lib/cmake/superlu/superluConfig.cmake
-- Installing: /Users/lo/projects/freecad/MYSTRAN/.pixi/envs/default/lib/cmake/superlu/superluConfigVersion.cmake

@ceanwang
Copy link
Contributor

ceanwang commented Sep 24, 2024

To use find_package(superlu), where should I save libSuperLU.a under Windows 10? This is build with gFortran.
If I change to build with Intel Fortran, will the find_package still work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants