Skip to content

Commit dbfbb69

Browse files
committed
Update macos version, relax bindings
Signed-off-by: Christian Glusa <[email protected]>
1 parent a733d16 commit dbfbb69

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ jobs:
155155
fail-fast: false
156156
name: Mac clang Python ${{ matrix.py-version }}
157157

158-
runs-on: macos-12
158+
runs-on: macos-latest
159159
timeout-minutes: 180
160160
env:
161161
MPIEXEC_FLAGS: "--allow-run-as-root --oversubscribe"

base/PyNucleus_base/utilsFem.py

+8
Original file line numberDiff line numberDiff line change
@@ -1069,6 +1069,14 @@ def process(self, override={}):
10691069
if self.comm:
10701070
params = self.comm.bcast(params, root=0)
10711071
self.params = params
1072+
1073+
if params['test']:
1074+
import psutil
1075+
p = psutil.Process()
1076+
try:
1077+
p.cpu_affinity(list(range(psutil.cpu_count())))
1078+
except AttributeError:
1079+
pass
10721080
self._timer = TimerManager(self.logger, comm=self.comm, memoryProfiling=params['showMemory'])
10731081

10741082
for fun in self.processHook:

0 commit comments

Comments
 (0)