Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/at2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ jobs:
uses: ./.github/workflows/spr.yml
with:
kokkos_version: 4.6.01
pv:
uses: ./.github/workflows/pv.yml
with:
kokkos_version: 4.6.01
# All these ran on sogpu01, which has been repurposed
# volta70:
# uses: ./.github/workflows/volta70.yml
Expand Down
94 changes: 94 additions & 0 deletions .github/workflows/pv.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
name: Reusable PV workflow

permissions:
contents: none

on:
workflow_call:
inputs:
kokkos_version:
description: 'The Kokkos Core version to build'
default: ''
required: true
type: string

jobs:
PR_PV_ONEAPI202410_SYCL:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
PR_PV_ONEAPI202410_SYCL:
PR_PV_ONEAPI_2024_2_1_0_SYCL:

or at least include the second number in 2024.2.1.0.

name: PR_PV_ONEAPI202410_SYCL
runs-on: [inteloneapi-basekit-2024.2.1-0-devel-ubuntu22.04-latest-pv]

steps:
- name: checkout_kokkos_kernels
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
path: kokkos-kernels

- name: checkout_kokkos
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
repository: kokkos/kokkos
ref: ${{ inputs.kokkos_version }}
path: kokkos

- name: set_oneapi_device_selector_var
run: echo "export ONEAPI_DEVICE_SELECTOR=level_zero:gpu" >> $GITHUB_ENV

- name: configure_kokkos
run: |
mkdir -p kokkos/{build,install}
cd kokkos/build

cmake \
-DCMAKE_BUILD_TYPE=Release \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Id' expect that you also have to build Kokkos as shared library

Suggested change
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=Release \

-DCMAKE_CXX_COMPILER=icpx \
-DCMAKE_CXX_FLAGS="-fp-model=precise" \
-DCMAKE_INSTALL_PREFIX="$PWD/../install" \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_CXX_EXTENSIONS=OFF \
-DKokkos_ENABLE_SERIAL=ON \
-DKokkos_ENABLE_SYCL=ON \
-DKokkos_ARCH_INTEL_PVC=ON \
-DKokkos_ENABLE_TESTS=OFF \
-DKokkos_ENABLE_EXAMPLES=OFF \
-DKokkos_ENABLE_DEPRECATION_WARNINGS=OFF \
-DKokkos_ENABLE_DEPRECATED_CODE_4=OFF \
-DKokkos_ENABLE_DEPRECATION_WARNINGS=OFF \
-DKokkos_ENABLE_ONEDPL=OFF \
..

- name: build_and_install_kokkos
run: |
cmake --build "$PWD/kokkos/build" -j 16
cmake --install "$PWD/kokkos/build"

- name: configure_kokkos_kernels
run: |
mkdir -p kokkos-kernels/{build,install}
cd kokkos-kernels/build

cmake \
-S "$PWD/.." \
-B "$PWD" \
-D BUILD_SHARED_LIBS=ON \
-D CMAKE_CXX_COMPILER=icpx \
-D CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF \
-D CMAKE_CXX_FLAGS="-fp-model=precise -Wno-pass-failed -Wno-unused-command-line-argument" \
-D CMAKE_INSTALL_PREFIX="$PWD/install" \
-D Kokkos_ROOT="$PWD/../../kokkos/install" \
-D KokkosKernels_ENABLE_TESTS_AND_PERFSUITE=OFF \
-D KokkosKernels_ENABLE_TESTS=ON \
-D KokkosKernels_ENABLE_PERFTESTS=ON \
-D KokkosKernels_ENABLE_EXAMPLES=ON \
-D KokkosKernels_INST_DOUBLE=ON \
-D KokkosKernels_INST_COMPLEX_DOUBLE=ON \
-D KokkosKernels_INST_ORDINAL_INT64_T=ON \
-D KokkosKernels_INST_ORDINAL_INT=ON \
-D KokkosKernels_INST_OFFSET_SIZE_T=ON \
-D KokkosKernels_INST_OFFSET_INT=ON

- name: build_kokkos_kernels
run: cmake --build "$PWD/kokkos-kernels/build" -j 16

- name: test
working-directory: kokkos-kernels/build
run: ZES_ENABLE_SYSMAN=1 ctest --output-on-failure -V --timeout 3600
Loading