File tree Expand file tree Collapse file tree 2 files changed +20
-18
lines changed Expand file tree Collapse file tree 2 files changed +20
-18
lines changed Original file line number Diff line number Diff line change 7
7
runs-on : ubuntu-latest
8
8
timeout-minutes : 30
9
9
steps :
10
- - name : Configure hostname
11
- run : echo 127.0.0.1 `hostname` | sudo tee -a /etc/hosts > /dev/null
12
- if : ${{ runner.os == 'Linux' || runner.os == 'macOS' }}
13
-
14
10
- name : Install depencencies
15
11
run : sudo apt-get install -y -q
16
12
libnuma-dev
54
50
- name : Add Open MPI to PATH
55
51
run : echo /opt/openmpi/bin >> $GITHUB_PATH
56
52
57
- - name : Tweak MPI
58
- run : |
59
- # Tweak MPI
60
- mca_params="$HOME/.openmpi/mca-params.conf"
61
- mkdir -p "$(dirname "$mca_params")"
62
- echo mpi_param_check = true >> "$mca_params"
63
- echo mpi_show_handle_leaks = true >> "$mca_params"
64
- echo rmaps_base_oversubscribe = true >> "$mca_params"
65
- mca_params="$HOME/.prte/mca-params.conf"
66
- mkdir -p "$(dirname "$mca_params")"
67
- echo rmaps_default_mapping_policy = :oversubscribe >> "$mca_params"
68
-
69
53
- name : Show MPI
70
54
run : ompi_info
71
55
101
85
with :
102
86
path : |
103
87
/opt/openmpi
104
- ~/.openmpi
105
- ~/.prte
106
88
test
107
89
demo
108
90
mpi4py-*.whl
Original file line number Diff line number Diff line change @@ -19,20 +19,40 @@ jobs:
19
19
env :
20
20
${{ inputs.env_name}} : 1
21
21
steps :
22
+ - name : Configure hostname
23
+ run : echo 127.0.0.1 `hostname` | sudo tee -a /etc/hosts > /dev/null
24
+ if : ${{ runner.os == 'Linux' || runner.os == 'macOS' }}
25
+
22
26
- name : Use Python
23
27
uses : actions/setup-python@v5
24
28
with :
25
29
python-version : 3
26
30
architecture : x64
31
+
27
32
- name : Get artifacts
28
33
uses : actions/download-artifact@v4
29
34
with :
30
35
path : /
31
36
name : build-artifacts
37
+
32
38
- name : Restore executable permissions
33
39
run : chmod a+x /opt/openmpi/bin/*
40
+
34
41
- name : Add Open MPI to PATH
35
42
run : echo /opt/openmpi/bin >> $GITHUB_PATH
43
+
44
+ - name : Tweak MPI
45
+ run : |
46
+ # Tweak MPI
47
+ mca_params="$HOME/.openmpi/mca-params.conf"
48
+ mkdir -p "$(dirname "$mca_params")"
49
+ echo mpi_param_check = true >> "$mca_params"
50
+ echo mpi_show_handle_leaks = true >> "$mca_params"
51
+ echo rmaps_base_oversubscribe = true >> "$mca_params"
52
+ mca_params="$HOME/.prte/mca-params.conf"
53
+ mkdir -p "$(dirname "$mca_params")"
54
+ echo rmaps_default_mapping_policy = :oversubscribe >> "$mca_params"
55
+
36
56
- name : Install the mpi4py wheel
37
57
run : python -m pip install mpi4py --no-index --find-links=.
38
58
You can’t perform that action at this time.
0 commit comments