Skip to content

Commit

Permalink
ci: debug build
Browse files Browse the repository at this point in the history
  • Loading branch information
cwpearson committed Jun 5, 2024
1 parent 14a0ece commit 1531d9c
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions .github/workflows/linux-compileonly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,48 +16,43 @@ jobs:
steps:
- name: Create workspace
run: mkdir -p ${{ github.workspace }}
- name: Check out repository code
- name: Check out Repository Code
uses: actions/checkout@v4
# inside the container, GITHUB_WORKSPACE is something like /__w/... which is not the same as ${{github.workspace}}
- name: Move repository code to expected location
shell: bash
# inside the container, GITHUB_WORKSPACE is something like /__w/... which is not the same as ${{github.workspace}}. For consistency, we'll try to do everything in ${{github.workspace}}, so move the files over there.
- name: Move Repository Code to Expected Location
shell: bash # for shopt -s dotglob, which also moves hidden files
run: |
shopt -s dotglob && mv "$GITHUB_WORKSPACE"/* ${{ github.workspace }}
- name: DEBUG - list
run: |
echo 1 && pwd
echo 2 && ls
echo 3 && ls ${{ github.workspace }}
- name: Install packages
run: |
apt-get update && apt-get install -y cmake wget git
# Build a CUDA-enabled OpenMPI. This is probably not necessary for a compile-only test.
- name: Download MPI
run: |
wget https://download.open-mpi.org/release/open-mpi/v4.1/openmpi-4.1.6.tar.bz2
tar -xf openmpi-4.1.6.tar.bz2
- name: Configure MPI
run: cd openmpi-4.1.6 && ./configure --prefix=/usr/local --with-cuda=/usr/local/cuda
- name: Build MPI
run: cd openmpi-4.1.6 && make -j$(nproc)
run: make -C openmpi-4.1.6 -j$(nproc) all
- name: Install MPI
run: |
cd openmpi-4.1.6 && make all install
make -C openmpi-4.1.6 all install
ldconfig
- name: Check MPI in path
- name: Print some MPI Info
run: |
which mpirun
mpirun --version
which mpicxx
mpicxx --version
- name: Check MPI CUDA support
- name: Check MPI CUDA Support
run: ompi_info --parsable --all | grep mpi_built_with_cuda_support:value:true

- name: Build Kokkos
run: |
git clone https://github.com/kokkos/kokkos.git --branch master --depth 1 "$KOKKOS_SRC"
cmake -S "$KOKKOS_SRC" -B "$KOKKOS_BUILD" -DCMAKE_CXX_COMPILER="$KOKKOS_SRC/bin/nvcc_wrapper" -DCMAKE_INSTALL_PREFIX="$KOKKOS_INSTALL" -DCMAKE_BUILD_TYPE=Release -DKokkos_ENABLE_SERIAL=ON -DKokkos_ENABLE_CUDA=ON -DKokkos_ARCH_AMPERE80=ON
cmake --build "$KOKKOS_BUILD" --parallel $(nproc) -t install
- name: Build KokkosComm
- name: Build Kokkos Comm
run: |
cmake -S "$COMM_SRC" -B "$COMM_BUILD" -DCMAKE_CXX_COMPILER="$KOKKOS_SRC/bin/nvcc_wrapper" -DKokkos_ROOT="$KOKKOS_INSTALL" -DCMAKE_BUILD_TYPE=Release
VERBOSE=1 cmake --build "$COMM_BUILD"

0 comments on commit 1531d9c

Please sign in to comment.