File tree Expand file tree Collapse file tree 5 files changed +48
-2
lines changed Expand file tree Collapse file tree 5 files changed +48
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ ARG BASE_DEPS="\
32
32
ARG UR_DEPS="\
33
33
doxygen \
34
34
python3 \
35
- python3-pip"
35
+ python3-pip \
36
+ libhwloc-dev"
36
37
37
38
# Unified Runtime's dependencies (installed via pip)
38
39
ARG UR_PYTHON_DEPS="\
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # Copyright (C) 2024 Intel Corporation
4
+ # Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM Exceptions.
5
+ # See LICENSE.TXT
6
+ # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
+
8
+ # install_hwloc.sh - Script for building and installing HWLOC library from source code
9
+
10
+ set -e
11
+
12
+ git clone -b hwloc-2.3.0 https://github.com/open-mpi/hwloc.git
13
+ pushd hwloc
14
+ ./autogen.sh
15
+ ./configure
16
+ make -j$( nproc)
17
+ sudo make install -j$( nproc)
18
+ popd
Original file line number Diff line number Diff line change 47
47
sudo apt-get update
48
48
sudo apt-get install -y doxygen ${{matrix.compiler.c}}
49
49
50
+ - name : Install libhwloc
51
+ run : .github/scripts/install_hwloc.sh
52
+
50
53
- name : Install g++-7
51
54
if : matrix.compiler.cxx == 'g++-7'
52
55
run : |
@@ -224,11 +227,17 @@ jobs:
224
227
Expand-Archive -Path "$WorkingDir\doxygen.zip"
225
228
Add-Content $env:GITHUB_PATH "$WorkingDir\doxygen"
226
229
230
+ - name : Install hwloc
231
+ run : vcpkg install hwloc:x64-windows
232
+
227
233
- name : Configure CMake
234
+ env :
235
+ VCPKG_PATH : " C:/vcpkg/packages/hwloc_x64-windows"
228
236
run : >
229
237
cmake
230
238
-B${{github.workspace}}/build
231
239
${{matrix.toolset}}
240
+ -DCMAKE_PREFIX_PATH="${{env.VCPKG_PATH}}"
232
241
-DCMAKE_C_COMPILER=${{matrix.compiler.c}}
233
242
-DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}}
234
243
-DCMAKE_POLICY_DEFAULT_CMP0094=NEW
@@ -267,6 +276,9 @@ jobs:
267
276
- name : Install prerequisites
268
277
run : python3 -m pip install -r third_party/requirements.txt
269
278
279
+ - name : Install hwloc
280
+ run : brew install hwloc
281
+
270
282
- name : Configure CMake
271
283
run : >
272
284
cmake
Original file line number Diff line number Diff line change 31
31
- name : Install pip packages
32
32
run : pip install -r third_party/requirements.txt
33
33
34
+ - name : Install apt packages
35
+ run : |
36
+ sudo apt-get update
37
+ sudo apt-get install -y libhwloc-dev
38
+
34
39
- name : Configure CMake
35
40
run : cmake -B ${{github.workspace}}/build -DUR_DEVELOPER_MODE=ON -DUR_BUILD_TESTS=ON -DUR_ENABLE_TRACING=ON -DUR_BUILD_TOOLS=ON -DUMF_ENABLE_POOL_TRACKING=ON
36
41
61
66
- name : Install pip packages
62
67
run : python3 -m pip install -r third_party/requirements.txt
63
68
69
+ - name : Install hwloc
70
+ run : vcpkg install hwloc:x64-windows
71
+
64
72
- name : Configure CMake
65
- run : cmake -B ${{github.workspace}}/build -DCMAKE_POLICY_DEFAULT_CMP0094=NEW -DUR_DEVELOPER_MODE=ON -DUR_BUILD_TESTS=ON -DUR_ENABLE_TRACING=ON -DUR_BUILD_TOOLS=ON -DUMF_ENABLE_POOL_TRACKING=ON
73
+ env :
74
+ VCPKG_PATH : " C:/vcpkg/packages/hwloc_x64-windows"
75
+ run : cmake -B ${{github.workspace}}/build -DCMAKE_POLICY_DEFAULT_CMP0094=NEW -DUR_DEVELOPER_MODE=ON -DUR_BUILD_TESTS=ON -DUR_ENABLE_TRACING=ON -DUR_BUILD_TOOLS=ON -DUMF_ENABLE_POOL_TRACKING=ON -DCMAKE_PREFIX_PATH="${{env.VCPKG_PATH}}"
66
76
67
77
- name : Build
68
78
run : cmake --build ${{github.workspace}}/build -j $(nproc) --config Release
Original file line number Diff line number Diff line change 38
38
- name : Install pip packages
39
39
run : pip install -r third_party/requirements.txt
40
40
41
+ - name : Install apt packages
42
+ run : |
43
+ sudo apt-get update
44
+ sudo apt-get install -y libhwloc-dev
45
+
41
46
- name : Configure CMake
42
47
run : >
43
48
cmake
You can’t perform that action at this time.
0 commit comments