Skip to content

Improve c make building - #2

Merged
julielangou merged 2 commits into
Reference-LAPACK:masterfrom
hjmjohnson:ImproveCMakeBuilding
Jul 6, 2016
Merged

julielangou merged 2 commits into
Reference-LAPACK:masterfrom
hjmjohnson:ImproveCMakeBuilding

Conversation

@hjmjohnson

Copy link
Copy Markdown
Contributor

No description provided.

The cblas_mangling_with_flags.h and lapacke_mangling_with_flags.h
are template files that are not used directly.  They need to be
configured (i.e. copied) to lapacke_mangling.h and cblas_mangling.h
header files that are used.  These renamings make the intent of
these files more clearly reported.

The file LAPACKE/include/lapacke_mangling.h should not be stored in the
repository because it should be generated (copied from above) at build
time.
@hjmjohnson

Copy link
Copy Markdown
Contributor Author

@sebastien-villemot @julielangou

I've provided two patches to 1) clarify and improve the dual building with cmake and Makefiles, 2) provide more testing for cases when the cmake found compilers for fortran and C are not compatible with each other.

I have a few notes of other relatively minor cmake build improvements that I will hold off on until this set of changes is accepted/rejected.

Thank you,
Hans

Use CMake capabilities to test if the specified fortran
and C compilers are compatible.  Fail early if they are
determined to be incompatible.

Use CMake capabilities to generate platform specific
header files, If CMake FortranCInterface_HEADER function
fails to identify FortranCInterface_GLOBAL_FOUND or
FortranCInterface_MODULE_FOUND, then fall back to the
statically generated file that is used by Makefiles.
@hjmjohnson
hjmjohnson force-pushed the ImproveCMakeBuilding branch from bc3cb4d to 2cf2448 Compare July 5, 2016 21:09
Comment thread LAPACKE/CMakeLists.txt

lapack_install_library(lapacke)
INSTALL( FILES ${LAPACKE_INCLUDE} DESTINATION include )
INSTALL( FILES ${LAPACKE_INCLUDE} ${LAPACK_BINARY_DIR}/include/lapacke_mangling.h DESTINATION include )

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had missed adding ${LAPACK_BINARY_DIR}/include/lapacke_mangling.h to the installed files in the earlier commit.

This was a problem when using default cmake "find_package(LAPACKE REQUIRED)" from an external package.

@julielangou

Copy link
Copy Markdown
Contributor

Thank you very much Hans for your contribution.
Looks like the CMAKE build was successful in our test environment.

@julielangou julielangou closed this Jul 6, 2016
@julielangou julielangou reopened this Jul 6, 2016
@julielangou
julielangou merged commit 185eaee into Reference-LAPACK:master Jul 6, 2016
@julielangou

Copy link
Copy Markdown
Contributor

Not very sure why, but the author of this commit is me while it should be you.

@hjmjohnson
hjmjohnson deleted the ImproveCMakeBuilding branch July 6, 2016 13:31
@hjmjohnson

Copy link
Copy Markdown
Contributor Author

@julielangou I am still the author of the commit that fixes the bug, you are the author of the merge commit. Git is careful about giving attributes (blame) to each person involved. You merge commit is giving you attribution for accepting the changes provided by me.

langou pushed a commit that referenced this pull request Aug 6, 2020
grisuthedragon added a commit to grisuthedragon/lapack that referenced this pull request Jul 24, 2023
# Das ist die erste Commit-Beschreibung:

Add xGEMMT and their test cases

The xGEMMT subroutines are added in the Fortran
API. The tests are updated as well.

# Die Commit-Beschreibung Reference-LAPACK#2 wird ausgelassen:

# Add DGEMMT

# Die Commit-Beschreibung Reference-LAPACK#3 wird ausgelassen:

# Add sgemmt
langou pushed a commit that referenced this pull request Dec 3, 2024
Merge branch 'Reference-LAPACK:master' into larft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants