OMPI_Affinity_str returning empty strings

I am trying to understand the affinities chosen by OpenMPI
following the documentation of
https://www.open-mpi.org/doc/v4.0/man3/OMPI_Affinity_str.3.php

CentOS-8.2, gcc-8.3, openmpi-4.0.5
$ which mpirun
~/ompi/contrib-gcc830/openmpi-4.0.5-shared/bin/mpirun

I have taken that program, named it "affinity", compiled and linked with openmpi.  I run it as documented and get

$ mpirun -np 2 -bind-to core affinity
rank 0:
       ompi_bound:
  current_binding:
           exists:
rank 1:
       ompi_bound:
  current_binding:
           exists:

As one can see, I get no output.  Is there something I can change to
make this work?

Thx...John Cary

Reply via email to