From 5bbb8be4e4da8c8a3700fe97f547c80f8688e66c Mon Sep 17 00:00:00 2001 From: Christian Glusa Date: Wed, 23 Oct 2024 18:46:16 -0600 Subject: [PATCH] Update macos version, relax bindings --- .github/workflows/build.yml | 2 +- base/PyNucleus_base/utilsFem.py | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index da2c9a1..c8ad1ad 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -155,7 +155,7 @@ jobs: fail-fast: false name: Mac clang Python ${{ matrix.py-version }} - runs-on: macos-12 + runs-on: macos-13 timeout-minutes: 180 env: MPIEXEC_FLAGS: "--allow-run-as-root --oversubscribe" diff --git a/base/PyNucleus_base/utilsFem.py b/base/PyNucleus_base/utilsFem.py index fece88e..dc21019 100644 --- a/base/PyNucleus_base/utilsFem.py +++ b/base/PyNucleus_base/utilsFem.py @@ -1069,6 +1069,14 @@ def process(self, override={}): if self.comm: params = self.comm.bcast(params, root=0) self.params = params + + if params['test']: + import psutil + p = psutil.Process() + try: + p.cpu_affinity(list(range(psutil.cpu_count()))) + except AttributeError: + pass self._timer = TimerManager(self.logger, comm=self.comm, memoryProfiling=params['showMemory']) for fun in self.processHook: