Skip to content

Use Kokkos_CXX_STANDARD #1619

Use Kokkos_CXX_STANDARD

Use Kokkos_CXX_STANDARD #1619

Workflow file for this run

name: github-linux
on:
push:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
concurrency:
group: ${{ github.event_name }}-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{github.event_name == 'pull_request'}}
permissions:
contents: read
env:
CMAKE_BUILD_PARALLEL_LEVEL: 4
CTEST_OUTPUT_ON_FAILURE: 1
CTEST_PARALLEL_LEVEL: 4
MAKEFLAGS: "--jobs=4"
jobs:
##########################
# linux-debug-cuda-clang #
##########################
linux-debug-cuda-clang:
# simple parallel debug build using cuda and clang
name: linux debug cuda clang
runs-on: [ubuntu-24.04]
#
# The following condition only runs the workflow on 'push' or if the
# 'pull_request' is not a draft. This is only useful for hackathons or
# other situations when the CI is massively overburdened with pull
# requests.
#
# if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
steps:
- name: modules
run: |
sudo apt-get update
sudo apt-get install -yq --no-install-recommends \
clang \
libmemkind-dev \
libomp-dev \
libopenmpi-dev \
nvidia-cuda-toolkit \
openmpi-bin
- name: info
run: |
cmake --version
ompi_info --version
clang++ -v
- uses: actions/checkout@v4
with:
repository: kokkos/kokkos
ref: 4.3.01
path: kokkos
- name: compile and install kokkos
working-directory: kokkos
run: |
mkdir build
cd build
cmake -D BUILD_SHARED_LIBS=ON \
-D CMAKE_CXX_COMPILER=clang++ \
-D CMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/../kokkos-install \
-D Kokkos_CXX_STANDARD=20 \
-D Kokkos_ENABLE_CUDA=ON \
-D Kokkos_ARCH_HOPPER90=ON \
..
make install