- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
All my efforts to achieve this have so far failed. This included setting the proper compiler `-static` flags for Intel ifort and ifx. Is there a way to force static linking of MPI libraries?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
according to https://cmake.org/cmake/help/latest/module/FindMPI.html
MPI_<lang>_COMPILER_FLAGS
should be used to pass -static_mpi
(https://gitlab.kitware.com/cmake/cmake/-/merge_requests/893)
does that work for you?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you @TobiasK for the suggestion. I have tried adding it to the list of CMake compile/link flags but the compiler returned an error stating the flag is unrecognized. It seems like only the MPI wrapper recognizes the flag. Is this true?
If yes, do you know any way to add this to CMake?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
according to https://cmake.org/cmake/help/latest/module/FindMPI.html
MPI_<lang>_COMPILER_FLAGS
should be used to pass -static_mpi
(https://gitlab.kitware.com/cmake/cmake/-/merge_requests/893)
does that work for you?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you. It seems like this solution worked.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page