vapaa icon indicating copy to clipboard operation
vapaa copied to clipboard

do sentinel detection in Fortran

Open jeffhammond opened this issue 1 year ago • 3 comments

detect sentinels in Fortran layer rather than C so we don't need to capture sentinel addresses and therefore don't need to initialize MPI in Fortran to setup this state.

jeffhammond avatar Apr 05 '24 14:04 jeffhammond

also, i'm not even detecting MPI_BOTTOM anywhere right now 🤣

jeffhammond avatar Apr 05 '24 14:04 jeffhammond

it is impossible to determine if a buffer is MPI_BOTTOM in Fortran, without resorting to LOC(), which is non-standard.

jeffhammond avatar Apr 09 '24 03:04 jeffhammond

design tests:

  • https://github.com/jeffhammond/HPCInfo/blob/master/mpi/abi/sentinel.F90
  • https://github.com/jeffhammond/HPCInfo/blob/master/mpi/abi/sentinel2.F90
  • https://github.com/jeffhammond/HPCInfo/blob/master/mpi/abi/sentinel3.F90

jeffhammond avatar Apr 09 '24 04:04 jeffhammond