From 8ccc4df6ff2954eb494bfda9633aaf8eb2e849b0 Mon Sep 17 00:00:00 2001 From: Nils Leif Fischer Date: Tue, 1 Feb 2022 10:17:48 +0100 Subject: [PATCH] charmpp: default backend to 'multicore' on macOS (#28443) --- var/spack/repos/builtin/packages/charmpp/package.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/charmpp/package.py b/var/spack/repos/builtin/packages/charmpp/package.py index d849acaca0..fe867153a5 100644 --- a/var/spack/repos/builtin/packages/charmpp/package.py +++ b/var/spack/repos/builtin/packages/charmpp/package.py @@ -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"