File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ jobs:
155
155
fail-fast : false
156
156
name : Mac clang Python ${{ matrix.py-version }}
157
157
158
- runs-on : macos-12
158
+ runs-on : macos-latest
159
159
timeout-minutes : 180
160
160
env :
161
161
MPIEXEC_FLAGS : " --allow-run-as-root --oversubscribe"
Original file line number Diff line number Diff line change @@ -1069,6 +1069,14 @@ def process(self, override={}):
1069
1069
if self .comm :
1070
1070
params = self .comm .bcast (params , root = 0 )
1071
1071
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
1072
1080
self ._timer = TimerManager (self .logger , comm = self .comm , memoryProfiling = params ['showMemory' ])
1073
1081
1074
1082
for fun in self .processHook :
You can’t perform that action at this time.
0 commit comments