[Bug 278869] net/mpich: Fatal error in internal_Init_thread

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 09 May 2024 14:04:37 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278869

--- Comment #2 from Laurent <laurent.chardon@gmail.com> ---
This seems to work as intended for me:

1) Compiled with default options

  (I don't have a GPU)

  $ mpivars > /dev/null
  Abort(403826191): Fatal error in internal_Init_thread: Other MPI error, error
stack:
  internal_Init_thread(48399): MPI_Init_thread(argc=0x8202ea77c,
argv=0x8202ea770, required=0, provided=0x8202ea76c) failed
  MPII_Init_thread(189)......:
  MPII_init_gpu(31)..........:  gpu_init failed

  $  MPIR_CVAR_ENABLE_GPU=0 mpivars > /dev/null
  $

  I get an error if I try to initialize a GPU that I don't have.

2) Compiled with default options except that I removed L0

  $ mpivars > /dev/null
  $

So the binaries behave as expected. The question that remains is: should the
default package crash if no GPU is found, and I'm sure that we agree that the
answer is no.

Then I would be inclined to undo the change brought by PR 256244 in
88e134883dd2 and remove L0 from the default options.

I'll submit this patch. Can confirm that mpich works for you as expected
without the L0 option.

-- 
You are receiving this mail because:
You are the assignee for the bug.