Skip to content

Commit

Permalink
Merge pull request #211 from uliegecsm/gcc-12
Browse files Browse the repository at this point in the history
cicd(gcc): add job with gcc 12 and nvcc 12.2.0
  • Loading branch information
crtrott authored Oct 5, 2023
2 parents f37e74f + 5f33169 commit 1542afe
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 5 deletions.
48 changes: 43 additions & 5 deletions .github/workflows/build-with-kokkos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,69 @@ jobs:
include:
- image: ubuntu:22.04
preset: OpenMP
compiler: default
- image: nvidia/cuda:12.1.0-devel-ubuntu22.04
preset: Cuda
compiler: default
- image: nvidia/cuda:12.2.0-devel-ubuntu22.04
preset: Cuda
compiler: {cpp: g++-12, c: gcc-12}
- image: rocm/dev-ubuntu-22.04:5.4
preset: ROCm
compiler: default
- image: rocm/dev-ubuntu-22.04:5.7
preset: ROCm
compiler: default
container:
image: ${{ matrix.image }}
env:
Kokkos_ROOT: /opt/kokkos
steps:
- name: Checkout Kokkos Tools
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Checkout Kokkos repository at latest develop
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: kokkos/kokkos
path: kokkos
ref: develop
- name: Install CMake, compilers, OpenMPI and dtrace
run: |
- name: Install compilers
run : |
apt update
if [ ${{ matrix.compiler }} != 'default' ];then
apt --yes --no-install-recommends install ${{ matrix.compiler.c }} ${{ matrix.compiler.cpp }}
export CC=${{ matrix.compiler.c }}
export CXX=${{ matrix.compiler.cpp }}
else
apt --yes --no-install-recommends install gcc g++
export CC=gcc
export CXX=g++
fi
echo "CC=$CC" >> $GITHUB_ENV
echo "CXX=$CXX" >> $GITHUB_ENV
case ${{ matrix.preset }} in
*OpenMP* )
echo "Preset is OpenMP, nothing to do."
;;
*Cuda* )
echo "Preset is Cuda. Setting 'NVCC_WRAPPER_DEFAULT_COMPILER' to '$CXX'."
echo "NVCC_WRAPPER_DEFAULT_COMPILER=$CXX" >> $GITHUB_ENV
;;
*ROCm* )
echo "Preset is ROCm, nothing to do."
;;
* )
echo "Unsupported preset '${{ matrix.preset }}'."
exit -1
esac
- name: Install CMake, OpenMPI and dtrace
run: |
apt --yes --no-install-recommends install \
cmake make \
gcc g++ \
libopenmpi-dev \
systemtap-sdt-dev
- name: Compile and install Kokkos
Expand Down
2 changes: 2 additions & 0 deletions profiling/nvtx-connector/kp_nvtx_connector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#include <string>
#include <limits>

#include <pthread.h>

#include "nvToolsExt.h"

#include "kp_core.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#include <cxxabi.h>
#include <cuda_profiler_api.h>

#include <pthread.h>

#include "kp_nvtx_focused_connector_domain.h"

#include "nvToolsExt.h"
Expand Down

0 comments on commit 1542afe

Please sign in to comment.