Skip to content

Commit

Permalink
[CI] Install hwloc on CI (UMF dependency)
Browse files Browse the repository at this point in the history
  • Loading branch information
igchor committed Mar 14, 2024
1 parent 91c1d2b commit 068045f
Show file tree
Hide file tree
Showing 9 changed files with 57 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/docker/ubuntu-22.04.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ ARG BASE_DEPS="\
ARG UR_DEPS="\
doxygen \
python3 \
python3-pip"
python3-pip \
libhwloc-dev"

# Unified Runtime's dependencies (installed via pip)
ARG UR_PYTHON_DEPS="\
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/bandit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ jobs:
- name: Install pip packages
run: pip install -r third_party/requirements.txt

- name: Install apt packages
run: |
sudo apt-get update
sudo apt-get install -y libhwloc-dev
# Scan is run only for the 'tools' folder.
- name: Run Bandit
run: |
Expand Down
24 changes: 23 additions & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- name: Install apt packages
run: |
sudo apt-get update
sudo apt-get install -y doxygen ${{matrix.compiler.c}}
sudo apt-get install -y libhwloc-dev doxygen ${{matrix.compiler.c}}
- name: Install g++-7
if: matrix.compiler.cxx == 'g++-7'
Expand Down Expand Up @@ -130,6 +130,11 @@ jobs:
- name: Install pip packages
run: pip install -r third_party/requirements.txt

- name: Install apt packages
run: |
sudo apt-get update
sudo apt-get install -y libhwloc-dev
- name: Download DPC++
run: |
sudo apt install libncurses5
Expand Down Expand Up @@ -183,6 +188,11 @@ jobs:
- name: Install pip packages
run: pip install -r third_party/requirements.txt

- name: Install apt packages
run: |
sudo apt-get update
sudo apt-get install -y libhwloc-dev
- name: Download DPC++
run: |
wget -O ${{github.workspace}}/dpcpp_compiler.tar.gz https://github.com/intel/llvm/releases/download/nightly-2024-01-29/sycl_linux.tar.gz
Expand Down Expand Up @@ -240,6 +250,11 @@ jobs:

- name: Install pip packages
run: pip install -r third_party/requirements.txt

- name: Install apt packages
run: |
sudo apt-get update
sudo apt-get install -y libhwloc-dev
- name: Init conda env
uses: conda-incubator/setup-miniconda@9f54435e0e72c53962ee863144e47a4b094bfd35 # v2.3.0
Expand Down Expand Up @@ -318,6 +333,13 @@ jobs:
Expand-Archive -Path "$WorkingDir\doxygen.zip"
Add-Content $env:GITHUB_PATH "$WorkingDir\doxygen"
- name: Install hwloc
run: |
$WorkingDir = $PWD.Path
Invoke-WebRequest -Uri https://download.open-mpi.org/release/hwloc/v2.9/hwloc-win64-build-2.9.3.zip -OutFile "$WorkingDir\hwloc.zip"
Expand-Archive -Path "$WorkingDir\hwloc.zip"
Add-Content $env:GITHUB_PATH "$WorkingDir\hwloc
- name: Configure CMake
run: >
cmake
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ jobs:
- name: Install pip packages
run: pip install -r third_party/requirements.txt

- name: Install apt packages
run: |
sudo apt-get update
sudo apt-get install -y libhwloc-dev
- name: Configure CMake
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

Expand Down Expand Up @@ -61,6 +66,13 @@ jobs:
- name: Install pip packages
run: python3 -m pip install -r third_party/requirements.txt

- name: Install hwloc
run: |
$WorkingDir = $PWD.Path
Invoke-WebRequest -Uri https://download.open-mpi.org/release/hwloc/v2.9/hwloc-win64-build-2.9.3.zip -OutFile "$WorkingDir\hwloc.zip"
Expand-Archive -Path "$WorkingDir\hwloc.zip"
Add-Content $env:GITHUB_PATH "$WorkingDir\hwloc
- name: Configure CMake
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

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Install apt packages
run: |
sudo apt-get update
sudo apt-get install -y doxygen ${{matrix.compiler.c}}
sudo apt-get install -y libhwloc-dev doxygen ${{matrix.compiler.c}}
- name: Install pip packages
run: pip install -r third_party/requirements.txt
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ jobs:
- name: Install pip packages
run: pip install -r third_party/requirements.txt

- name: Install apt packages
run: |
sudo apt-get update
sudo apt-get install -y libhwloc-dev
- name: Configure CMake
run: >
cmake
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Install apt package
run: |
sudo apt-get update
sudo apt-get install -y doxygen
sudo apt-get install -y libhwloc-dev doxygen
- name: Install prerequisites
run: python3 -m pip install -r third_party/requirements.txt
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/e2e_core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ jobs:
working-directory: ${{github.workspace}}/ur-repo
run: pip install -r third_party/requirements.txt

- name: Install apt packages
run: |
sudo apt-get update
sudo apt-get install -y libhwloc-dev
- name: Configure CMake UR
working-directory: ${{github.workspace}}/ur-repo
run: >
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ jobs:
- name: Install pip packages
run: pip install -r third_party/requirements.txt

- name: Install apt packages
run: |
sudo apt-get update
sudo apt-get install -y libhwloc-dev
- name: Download DPC++
run: |
wget -O ${{github.workspace}}/dpcpp_compiler.tar.gz https://github.com/intel/llvm/releases/download/nightly-2024-01-29/sycl_linux.tar.gz
Expand Down

0 comments on commit 068045f

Please sign in to comment.