OpenCoarrays
OpenCoarrays copied to clipboard
Defect: `caf` and `cafrun` scripts don't parse arguments/options correctly
Avg response time |
---|
Defect/Bug Report
See also #460 for additional context. The caftan
script requires -np
and <N_IMAGES>
as the first and second argument (when not passing --show
. Worse yet, --show
gives no indication that there will be problems if you add an additional argument to caftan
ahead of -np <N>
.
- OpenCoarrays Version: All recent versions
- Fortran Compiler: GFortran 7/8
- C compiler used for building lib: GCC
- Installation method: doesn't matter
- Output of
uname -a
: Linux on Travis-CI - MPI library being used: OpenMPI
- Machine architecture and number of physical cores: 2VPU
- Version of CMake: Doesn't matter
Observed Behavior
Users pass --oversubscribe
(required for OpenMPI) ahead of -np 5
etc. and things blow up
Expected Behavior
Parse options with arguments correctly. This will make the code cleaner and more generic too.
Steps to Reproduce
cafrun --show --oversubscribe -np 4 FORTRAN/transpose-coarray 10 1024 32
cafrun --oversubscribe -np 4 FORTRAN/transpose-coarray 10 1024 32
Put @zbeekman in the corner of shell scripting shame
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.