- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I can successfully compile an MPI Fortran shared library with CMake using Intel ifort and ifx. However, I persistently get the following error when linking other binary files with the shared library:
```
ld: libtest.so: undefined reference to `mpi_f08_compile_constants_MP_mpi_logical_'
```
Basically non of MPI library symbols are recognized by the linker. How is that possible?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Moving this to the HPC Toolkit Forum. The support team over there understand MPI much better.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@DataScientist
I guess this problem is also solved after solving static linking?
https://community.intel.com/t5/Intel-HPC-Toolkit/How-to-force-CMake-to-link-statically-with-Intel-MPI/td-p/1565488/jump-to/first-unread-message
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you @TobiasK . I suppose it should, but I already reverted all mpi_f08 syntax to mpi F90 syntax because of deadlines.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@DataScientist I would highly recommend to switch to MPI_F08, the mpi module will not get the newest features and is somewhat declared deprecated by the standard. Considering the fast moving MPI standard, it will take a while though until you notice a difference.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page