Intel® Moderncode for Parallel Architectures
Support for developing parallel programming applications on Intel® Architecture.
1695 Discussions

Argument mismatch for ierr, size and rank in MPI call

New Contributor III


When I moved my code to a new computer (and after changing from integer to integer*4 for ierr, size and rank) I get compile warnings (attached) and runtime errors (attached) for the data type of ierr, size and rank.

I have reduced the source code to just a few lines (attached).

Best regards

Anders S

0 Kudos
1 Reply
Black Belt

I don't entirely understand the justification for considering integer*4 as not matching integer, without providing a more complete diagnosis.


integer*4 is non-standard.  Better synonyms have been in Fortran for the last 20 years, more so now that Fortran2008 features are supported by most compilers. It is non-portable and you could break it even with the same compiler by changing compile line options.

Until recently, MPI wrapper compilation was not expected to check such things.  Intel can reasonably claim value for the improved checks.


0 Kudos