fortran-lang / fpm

Fortran Package Manager (fpm)
https://fpm.fortran-lang.org
MIT License
884 stars 99 forks source link

Can not build MPI-applications with oneAPI 2025.0 #1090

Open aradi opened 5 days ago

aradi commented 5 days ago

Description

Build of any arbitrary project with MPI-dependency fails when using oneAPI 2025.0.

Executing

fpm new test
cd test
echo -e "[dependencies]\nmpi =\"*\"" >> fpm.toml
FPM_FC=ifx fpm build

results in

<ERROR> *cmd_build* Model error: local INTEL MPI library does not support -v
STOP 1

Note: oneAPI 2024.2 seems to work.

Expected Behaviour

Building the project as expected without error message.

Version of fpm

0.10.1

Platform and Architecture

Linux/x86_64

Additional Information

No response

perazz commented 3 days ago

@aradi what is failing is the check that the Intel MPI wrapper works. Does mpiifort -v still return wrapper information? From this discussion it seems like there is a chance that for ifx the new wrappers will be mpiifx etc, in which case fpm needs an update

aradi commented 2 days ago

Funny enough, both wrappers exist:

❯ mpiifx -v
mpiifx for the Intel(R) MPI Library 2021.14 for Linux*
Copyright Intel Corporation.
ifx version 2025.0.0

and also

❯ mpiifort -v
mpiifx for the Intel(R) MPI Library 2021.14 for Linux*
Copyright Intel Corporation.
/opt/intel/oneapi/mpi/2021.14/bin/mpiifx: line 715: ifort: command not found

Latter returns with a non-zero exit code (although delivering the necessary information. As ifort had been removed from oneAPI package, fpm should check probably first mpiifx, indeed.