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

mpif77 emits -fallow-argument-mismatch which breaks mpif77 -fc flang #6869

Open
cfeld opened this issue Jan 15, 2024 · 1 comment
Open

mpif77 emits -fallow-argument-mismatch which breaks mpif77 -fc flang #6869

cfeld opened this issue Jan 15, 2024 · 1 comment
Assignees

Comments

@cfeld
Copy link

cfeld commented Jan 15, 2024

I try to use this GCC-based installation

$ mpichversion 
=== ParaStation MPI 5.9.2-1 ===
Version(PSMPI): Oct  4 2023 (5.9.2-1)+confset(gcc)+cuda+pmix
MPICH Version:      4.1.2
MPICH Release date: Wed Jun  7 15:22:45 CDT 2023
MPICH ABI:          15:1:3
MPICH Device:       psp
MPICH configure:    --prefix=/p/software/jurecadc/stages/2024/software/psmpi/5.9.2-1-GCC-12.3.0 --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --with-cuda --with-confset=gcc --with-mpichconf=--enable-static --with-file-system=ime+ufs+gpfs --enable-romio --with-pmix=/p/software/jurecadc/stages/2024/software/PMIx/4.2.6-GCCcore-12.3.0 build_alias=x86_64-pc-linux-gnu host_alias=x86_64-pc-linux-gnu CC=gcc CFLAGS=-I/opt/ddn/ime/include LDFLAGS= -L/opt/ddn/ime/lib -lim_client --with-device=psp --enable-cache --disable-static --enable-shared --enable-romio --enable-fast=O3,ndebug --enable-lib-depend --disable-rpath --enable-cxx --enable-fortran=all --with-psp-confset=gcc --with-datatype-engine=yaksa --with-psp-pscom=yes CC=gcc CXX=g++ FC=gfortran F77=gfortran --with-pmix=/p/software/jurecadc/stages/2024/software/PMIx/4.2.6-GCCcore-12.3.0 --enable-psp-cuda-awareness --with-cuda=/p/software/jurecadc/stages/2024/software/CUDA/12 --without-hwloc --with-hydra-topolib=no --without-hcoll --enable-static --with-file-system=ime+ufs+gpfs --enable-romio --disable-maintainer-mode
MPICH CC:           gcc -I/opt/ddn/ime/include   -DMPIR_CONTEXT_DYNAMIC_PROC_WIDTH=0  -DNDEBUG -DNVALGRIND -O3
MPICH CXX:          g++   -DNDEBUG -DNVALGRIND -O3
MPICH F77:          gfortran   -O3
MPICH FC:           gfortran   -O3

with flang, as in mpif77 -fc flang. This used to work with older installations, but now fails with flang: error: unknown argument: '-fallow-argument-mismatch'.

I think -fallow-argument-mismatch comes via WRAPPER_EXTRA_F77_FLAGS, introduced in 778933a.

Would it make sense to add the compiler-specific WRAPPER_EXTRA_F77_FLAGS only if test "@FC@" = "$FC" in src/env/mpifort.*?

@cfeld cfeld changed the title mpif77 emits -fallow-argument-mismatch which break mpif77 -fc flang mpif77 emits -fallow-argument-mismatch which breaks mpif77 -fc flang Jan 15, 2024
@hzhou
Copy link
Contributor

hzhou commented Jan 16, 2024

Yes, it makes sense.

@hzhou hzhou self-assigned this Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants