File tree Expand file tree Collapse file tree 4 files changed +26
-2
lines changed Expand file tree Collapse file tree 4 files changed +26
-2
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # Copyright (C) 2024 Intel Corporation
3
+ # Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
4
+ # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
5
+
6
+ # install_hwloc.sh - Script for building and installing HWLOC library from source code
7
+
8
+ set -e
9
+
10
+ git clone -b hwloc-2.3.0 https://github.com/open-mpi/hwloc.git
11
+ pushd hwloc
12
+ ./autogen.sh
13
+ ./configure
14
+ make -j$( nproc)
15
+ sudo make install -j$( nproc)
16
+ popd
Original file line number Diff line number Diff line change @@ -127,12 +127,15 @@ jobs:
127
127
- name : Install apt packages
128
128
run : |
129
129
sudo apt-get update
130
- sudo apt-get install -y clang cmake libhwloc-dev libnuma-dev libjemalloc-dev libtbb-dev
130
+ sudo apt-get install -y clang cmake libnuma-dev libjemalloc-dev libtbb-dev
131
131
132
132
- name : Install g++-7
133
133
if : matrix.compiler.cxx == 'g++-7'
134
134
run : sudo apt-get install -y ${{matrix.compiler.cxx}}
135
135
136
+ - name : Install libhwloc
137
+ run : .github/scripts/install_hwloc.sh
138
+
136
139
- name : Configure build
137
140
run : >
138
141
cmake
Original file line number Diff line number Diff line change @@ -123,4 +123,5 @@ jobs:
123
123
fi
124
124
125
125
scp -P 2222 ${{github.workspace}}/scripts/qemu/run-build.sh [email protected] :/home/cxltest
126
+ scp -P 2222 ${{github.workspace}}/.github/scripts/install_hwloc.sh [email protected] :/home/cxltest
126
127
ssh [email protected] -p 2222 -t "bash /home/cxltest/run-build.sh https://github.com/$CI_REPO ${{env.CI_BRANCH}}"
Original file line number Diff line number Diff line change @@ -10,7 +10,11 @@ repo=$1
10
10
branch=$2
11
11
12
12
echo password | sudo -Sk apt update
13
- echo password | sudo -Sk apt install -y git cmake gcc g++ numactl libnuma-dev libjemalloc-dev libtbb-dev libhwloc-dev
13
+ echo password | sudo -Sk apt install -y git cmake gcc g++ numactl libnuma-dev libjemalloc-dev libtbb-dev
14
+
15
+ # install packages required for building hwloc from source
16
+ echo password | sudo -Sk apt install -y autoconf libtool
17
+ source install_hwloc.sh
14
18
15
19
numactl -H
16
20
You can’t perform that action at this time.
0 commit comments