charmpp: default backend to 'multicore' on macOS (#28443)

This commit is contained in:
Nils Leif Fischer 2022-02-01 10:17:48 +01:00 committed by GitHub
parent 545a429646
commit 8ccc4df6ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,9 +69,15 @@ class Charmpp(Package):
)
# Communication mechanisms (choose exactly one)
# - Default to 'multicore' on macOS because that's probably the right choice
# for a personal machine.
if sys.platform == "darwin":
backend_default = "multicore"
else:
backend_default = "netlrts"
variant(
"backend",
default="netlrts",
default=backend_default,
values=("mpi", "multicore", "netlrts", "verbs", "gni",
"ucx", "ofi", "pami", "pamilrts"),
description="Set the backend to use"