[Mvapich-discuss] MVAPICH and LLVM based compilers with MPI Fortran missing MPI_Status_f2c and MPI_Status_c2f

Paniraja Guptha, Akshay panirajaguptha.1 at osu.edu
Mon Jun 10 12:34:41 EDT 2024


Hi Louise,
    Thanks for bringing this to our attention. We will take a look at the issue and get back to you.

-Akshay Paniraja Guptha

From: Mvapich-discuss <mvapich-discuss-bounces+panirajaguptha.1=osu.edu at lists.osu.edu> On Behalf Of Louise Spellacy via Mvapich-discuss
Sent: Monday, June 10, 2024 12:25 PM
To: Announcement about MVAPICH2 (MPI over InfiniBand, RoCE, Omni-Path, iWARP and EFA) Libraries developed at NBCL/OSU <mvapich-discuss at lists.osu.edu>
Subject: [Mvapich-discuss] MVAPICH and LLVM based compilers with MPI Fortran missing MPI_Status_f2c and MPI_Status_c2f

Hi Mvapich-discuss, Compiling MVAPICH with LLVM based compilers - reproduced with Intel oneAPI compilers and Arm Compiler For Linux - is missing symbols for MPI_Status_f2c and MPI_Status_c2f. Example application to reproduce: ---------------------------------------------------#include
ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
This message came from outside your organization.
    Report Suspicious  <https://us-phishalarm-ewt.proofpoint.com/EWT/v1/KGKeukY!vYQd06muqweq51ORUcOs-AZ7VjJmYUZH8s9P0PVf8CABgTmrCLKEwR6u9FSxkuHOJ3RrgOEkn-2jLvbJbznlirgNmuvlNPEmN338mEunHupfz2rUuxUF5m9ycaGytO8B4SoCDw$>   ‌
ZjQcmQRYFpfptBannerEnd
Hi Mvapich-discuss,

Compiling MVAPICH with LLVM based compilers - reproduced with Intel oneAPI compilers and Arm Compiler For Linux - is missing symbols for MPI_Status_f2c and MPI_Status_c2f.

Example application to reproduce:
---------------------------------------------------
#include "mpi.h"
#include <stdio.h>

int main(int argc, char* argv[])
{
    MPI_Init(&argc, &argv);

    MPI_Status_f2c(NULL, NULL);

    MPI_Finalize();
}
---------------------------------------------------

Compiled with:
---------------------------------------------------
 $ mpicc -g -O0 -o statusf2c statusf2c.c
/usr/bin/ld: /tmp/icx-a077a70d2b/statusf2c-f9cff4.o: in function `main':
/home/louspe01/test_dir/statusf2c.c:8: undefined reference to `MPI_Status_f2c'
icx: error: linker command failed with exit code 1 (use -v to see invocation)

 $ mpicc -v
mpicc for MVAPICH version 3.0
Intel(R) oneAPI DPC++/C++ Compiler 2024.1.0 (2024.1.0.20240308)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: intellinstalldir/compiler/2024.1/bin/compiler
Configuration file: intellinstalldir/compiler/2024.1/bin/compiler/../icx.cfg
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/10
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/11
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/11
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64
---------------------------------------------------

Similarly for MPI_Status_c2f the symbol is missing.

The configure line for MVAPICH was:
---------------------------------------------------
Configuring MVAPICH version 3.0 with  '--enable-debug' '--enable-debuginfo' '--enable-shared' '--with-device=ch3:sock' 'F90=' '--prefix=mvapichinstalldir' '--bindir=${prefix}/bin' '--sbindir=${prefix}/bin' '--libexecdir=${prefix}/bin' '--libdir=${prefix}/lib' '--includedir=${prefix}/include' '--oldincludedir=${prefix}/include' '--datarootdir=${prefix}/share' 'CC=icx' 'CFLAGS=' 'LDFLAGS=' 'LIBS=' 'CPPFLAGS=' 'CXX=icpx' 'CXXFLAGS=' 'FC=ifx' 'F77=ifx'
---------------------------------------------------

All the best,

Louise
--------
Louise Spellacy
Principal Engineer, Forge Engineering
www.linaroforge.com<https://urldefense.com/v3/__http:/www.linaroforge.com__;!!KGKeukY!xj-ao80_PasK3f5otG1ehVAWqWtMTI9hmyyX8eWFnqxxByBKeKhBW50f_m-oN-rbTT3rmHd0MPu4rMcaBXax_FR685JX0hXa34ir0Q$>

[Image removed by sender.]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osu.edu/pipermail/mvapich-discuss/attachments/20240610/bdc32dac/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ~WRD0000.jpg
Type: image/jpeg
Size: 823 bytes
Desc: ~WRD0000.jpg
URL: <http://lists.osu.edu/pipermail/mvapich-discuss/attachments/20240610/bdc32dac/attachment-0002.jpg>


More information about the Mvapich-discuss mailing list