Skip to content

Commit

Permalink
Fix CUDA CI
Browse files Browse the repository at this point in the history
Outdated lines and errors in CUDA CI job:
```
File "/home/runner/.local/lib/python3.8/site-packages/setuptools/_entry_points.py", line 44, in <module>
      def validate(eps: metadata.EntryPoints):
  AttributeError: module 'importlib_metadata' has no attribute 'EntryPoints'
  error: subprocess-exited-with-error
```
  • Loading branch information
ax3l committed Jul 18, 2024
1 parent 620cc06 commit de54020
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dependencies/dependencies_nvcc11.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ sudo apt-get install -y \
pkg-config \
wget

sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
echo "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 /" \
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pub
echo "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 /" \
| sudo tee /etc/apt/sources.list.d/cuda.list
sudo apt-get update
sudo apt-get install -y \
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dependencies/hip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ sudo apt-key add rocm.gpg.key

source /etc/os-release # set UBUNTU_CODENAME: focal or jammy or ...

echo "deb [arch=amd64] https://repo.radeon.com/rocm/apt/${1-latest} ${UBUNTU_CODENAME} main" \
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/rocm/apt/${1-latest} ${UBUNTU_CODENAME} main" \
| sudo tee /etc/apt/sources.list.d/rocm.list
echo 'export PATH=/opt/rocm/llvm/bin:/opt/rocm/bin:/opt/rocm/profiler/bin:/opt/rocm/opencl/bin:$PATH' \
| sudo tee -a /etc/profile.d/rocm.sh
Expand All @@ -47,7 +47,7 @@ sudo apt-get install -y --no-install-recommends \
libopenmpi-dev \
ninja-build \
openmpi-bin \
rocm-dev \
rocm-core \
rocfft-dev \
rocprim-dev \
rocrand-dev \
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/hip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ concurrency:
jobs:
build_hip:
name: HIP
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
CXXFLAGS: "-Werror -Wno-deprecated-declarations -Wno-error=pass-failed"
CMAKE_GENERATOR: Ninja
Expand Down Expand Up @@ -45,11 +45,6 @@ jobs:
python3 -m pip install -U pip setuptools wheel
python3 -m pip install -U cmake
# "mpic++ --showme" forgets open-pal in Ubuntu 20.04 + OpenMPI 4.0.3
# https://bugs.launchpad.net/ubuntu/+source/openmpi/+bug/1941786
# https://github.com/open-mpi/ompi/issues/9317
export LDFLAGS="-lopen-pal"
cmake -S . -B build \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DAMReX_GPU_BACKEND=HIP \
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/intel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ concurrency:
jobs:
tests-oneapi-sycl:
name: oneAPI SYCL 3D
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
tests-icpx:
name: ICPX
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Dependencies
Expand All @@ -75,7 +75,8 @@ jobs:
- name: Build & Install
# mkl/rng/device/detail/mrg32k3a_impl.hpp has a number of sign-compare error
# mkl/rng/device/detail/mrg32k3a_impl.hpp has missing braces in array-array initalization
env: {CXXFLAGS: "-fno-operator-names -Werror -Wall -Wextra -Wpedantic -Wnull-dereference -Wfloat-conversion -Wshadow -Woverloaded-virtual -Wextra-semi -Wunreachable-code -Wnon-virtual-dtor -Wno-sign-compare -Wno-missing-braces -Wno-error=pass-failed -Wno-tautological-constant-compare"}
# /usr/include/c++/12/bits/stl_tempbuf.h has deprecated-declarations in 'get_temporary_buffer<std::pair<long, int>>'
env: {CXXFLAGS: "-fno-operator-names -Werror -Wall -Wextra -Wpedantic -Wnull-dereference -Wfloat-conversion -Wshadow -Woverloaded-virtual -Wextra-semi -Wunreachable-code -Wnon-virtual-dtor -Wno-sign-compare -Wno-missing-braces -Wno-error=pass-failed -Wno-tautological-constant-compare -Wno-deprecated-declarations"}
run: |
set +e
source /opt/intel/oneapi/setvars.sh
Expand Down Expand Up @@ -150,7 +151,7 @@ jobs:
export CXX=$(which icpc)
export CC=$(which icc)
python3 -m pip install -U pip setuptools wheel
python3 -m pip install -U pip importlib_metadata launchpadlib setuptools wheel
python3 -m pip install -U cmake
python3 -m pip install -U pytest mpi4py
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ jobs:
export CXX=$(which g++)
export CUDAHOSTCXX=$(which g++)
python3 -m pip install -U pip setuptools wheel
python3 -m pip install -U pip importlib_metadata launchpadlib setuptools wheel
python3 -m pip install -U cmake
cmake -S . -B build \
Expand Down

0 comments on commit de54020

Please sign in to comment.