Skip to content

Commit 32be33d

Browse files
committed
250731.200131.PDT try starting a parpool with the number of cores before profiling
1 parent f3f780c commit 32be33d

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/profile_cobyla_small.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,18 @@ jobs:
4141
- name: Get the solver name
4242
run: echo "SOLNAME=$(echo ${{ matrix.solver }} | cut -c1-6)" >> $GITHUB_ENV
4343

44+
- name: Free disk space
45+
uses: jlumbroso/free-disk-space@main
46+
if: startsWith(matrix.os, 'ubuntu')
47+
with:
48+
# all of these default to true, but feel free to set to "false" if necessary for your workflow
49+
android: true
50+
dotnet: true
51+
haskell: true
52+
large-packages: true
53+
docker-images: true
54+
swap-storage: false # Important, or the runner may be shut down due to memory starvation.
55+
4456
- name: Clone Repository (Latest)
4557
uses: actions/[email protected]
4658
if: github.event.inputs.git-ref == ''
@@ -109,6 +121,8 @@ jobs:
109121
with:
110122
command: |
111123
ver;
124+
feature('numCores') % Check the number of available cores
125+
parpool(feature('numCores')); % Start a parallel pool with the number of available cores
112126
root_dir = pwd();
113127
114128
cd(fullfile(root_dir, 'matcutest')); install(); which macup

.github/workflows/profile_lincoa_small.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ jobs:
115115
with:
116116
command: |
117117
ver;
118+
feature('numCores') % Check the number of available cores
119+
parpool(feature('numCores')); % Start a parallel pool with the number of available cores
118120
root_dir = pwd();
119121
120122
cd(fullfile(root_dir, 'matcutest')); install(); which macup

0 commit comments

Comments
 (0)