title: MPI_Init failing in FreeBSD 13
body: <p>I'm using FreeBSD 13, and trying to compile (successfully) and run (un-succesfully) a simple minimal MPI program</p>
  <pre><code>#include &lt;mpi.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;stdio.h&gt;
  
  int main(int argc, char **argv) {
      int res;
  
      res = MPI_Init(&amp;argc, &amp;argv);
      if (res != MPI_SUCCESS)
      {
          fprintf (stderr, &quot;MPI_Init failed!\n&quot;);
          exit (0);
      }
  
      res = MPI_Finalize();
      if (res != MPI_SUCCESS)
      {
          fprintf (stderr, &quot;MPI_Finalize failed!\n&quot;);
          exit (0);
      }
  }
  </code></pre>
  <p>I'm using <code>mpich-3.4.2_2</code> MPI library, compile the above with <code>mpicc example_mpi.c</code>, then run with <code>mpirun -np 2 ./a.out</code>.</p>
  <p>Compiler is</p>
  <blockquote>
  <p>FreeBSD clang version 11.0.1 (git@github.com:llvm/llvm-project.git llvmorg-11.0.1-0-g43ff75f2c3fe)
  Target: x86_64-unknown-freebsd13.0
  Thread model: posix
  InstalledDir: /usr/bin</p>
  </blockquote>
  <p>I'm getting a strange MPI init error</p>
  <blockquote>
  <p>Abort(268484367) on node 0 (rank 0 in comm 0): Fatal error in PMPI_Init: Other MPI error, error stack:
  MPIR_Init_thread(153):  gpu_init failed
  [unset]: write_line error; fd=-1 buf=:cmd=abort exitcode=268484367
  :
  system msg for write_line failure : Bad file descriptor
  MPI_Init failed!</p>
  </blockquote>
  <p>Any idea what is going on? I ran under root and same issue.</p>