OpenCoarrays icon indicating copy to clipboard operation
OpenCoarrays copied to clipboard

Defect: `caf` and `cafrun` scripts don't parse arguments/options correctly

Open zbeekman opened this issue 7 years ago • 2 comments

Avg response time
Issue Stats

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

zbeekman avatar Nov 13 '17 18:11 zbeekman

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Mar 29 '19 09:03 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Apr 26 '19 15:04 stale[bot]