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 Fortran-specific build for FFTE #35

Merged
merged 1 commit into from
Apr 7, 2022

Conversation

luszczek
Copy link
Contributor

@luszczek luszczek commented Apr 7, 2022

I added more generic support for Fortran-specific builds that will work across Fortran compiler vendors. It worked with Open MPI Gflortran and IBM Spectrum MPI XL Fotran. This is to address #13 and there is still need to figure C interface to Fortran code.

@luszczek luszczek added enhancement New feature or request build Build system suggestions labels Apr 7, 2022
@cayrols
Copy link
Collaborator

cayrols commented Apr 7, 2022

I am not an expert in CMake but this seems correct to me.

@@ -50,6 +50,10 @@ macro(fiber_add_mpi_test)
unset(_fiber_COMMAND)
endmacro()

if (FIBER_ENABLE_FFTE)
link_directories(${CMAKE_Fortran_IMPLICIT_LINK_DIRECTORIES})
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just one word about this implicit variable.
What is it for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For Gfortran, implicit library is -lgfortran. For IBM, it's -lxlf and so on. And they are usually hidden in strange place so I need LINK_DIRECTORIES added to tell linker where to find them.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thank you for the explanation.

@luszczek luszczek merged commit 3dadc1a into icl-utk-edu:master Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Build system suggestions enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants