This must be a very old topic. I would like to run mpi with one process per node, e.g., using -cpus-per-rank=1. Then I want to use openmp inside of that. But other times I will run with a rank on each physical core.
Inside my code I would like to detect which situation I am in. Is there an openmpi api call to determine that? Thanks.....John