Skip to content

Commit 1ef4bfb

Browse files
committed
Worflow: refactoring SPR to standard cmake and suppress warnings
The -Wpass-fail warnings are poluting the output of the compiler this does not really tell us anything either so let us suppress these. Signed-off-by: Luc Berger-Vergiat <[email protected]>
1 parent 9f5b2b0 commit 1ef4bfb

File tree

1 file changed

+61
-21
lines changed

1 file changed

+61
-21
lines changed

.github/workflows/spr.yml

Lines changed: 61 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -30,27 +30,67 @@ jobs:
3030
ref: ${{ inputs.kokkos_version }}
3131
path: kokkos
3232

33-
- name: configure
33+
- name: configure_kokkos
3434
run: |
35-
mkdir -p build
36-
cd build
37-
../kokkos-kernels/cm_generate_makefile.bash \
38-
--with-openmp \
39-
--with-serial \
40-
--arch=SPR \
41-
--compiler=icpx \
42-
--cxxflags="-fp-model=precise" \
43-
--with-scalars=double,complex_double,float,complex_float \
44-
--with-ordinals=int,int64_t \
45-
--with-offsets=int,size_t \
46-
--with-tpls=mkl \
47-
--kokkos-cmake-flags=-DKokkos_ENABLE_ONEDPL=OFF \
48-
--kokkos-path=$PWD/../kokkos
49-
50-
- name: build
51-
working-directory: build
52-
run: make -j8
35+
mkdir -p kokkos/{build,install}
36+
cd kokkos/build
37+
38+
cmake \
39+
-S "$PWD/.." \
40+
-B "$PWD" \
41+
-D BUILD_SHARED_LIBS=OFF \
42+
-D CMAKE_CXX_COMPILER=icpx \
43+
-D CMAKE_CXX_FLAGS=-fp-model=precise \
44+
-D CMAKE_EXE_LINKER_FLAGS= \
45+
-D CMAKE_INSTALL_PREFIX="$PWD/../install" \
46+
-D CMAKE_VERBOSE_MAKEFILE=ON \
47+
-D CMAKE_CXX_EXTENSIONS=OFF \
48+
-D Kokkos_ENABLE_SERIAL=ON \
49+
-D Kokkos_ENABLE_OPENMP=ON \
50+
-D Kokkos_ARCH_SPR=ON \
51+
-D Kokkos_ENABLE_TESTS=OFF \
52+
-D Kokkos_ENABLE_EXAMPLES=OFF \
53+
-D Kokkos_ENABLE_DEPRECATION_WARNINGS=OFF \
54+
-D Kokkos_ENABLE_DEPRECATED_CODE_4=OFF \
55+
-D Kokkos_ENABLE_DEPRECATION_WARNINGS=OFF \
56+
-D Kokkos_ENABLE_ONEDPL=OFF
57+
58+
- name: build_and_install_kokkos
59+
run: |
60+
cmake --build "$PWD/kokkos/build" -j 12
61+
cmake --install "$PWD/kokkos/build"
62+
63+
- name: configure_kokkos_kernels
64+
run: |
65+
mkdir -p kokkos-kernels/{build,install}
66+
cd kokkos-kernels/build
67+
68+
cmake \
69+
-S "$PWD/.." \
70+
-B "$PWD" \
71+
-D BUILD_SHARED_LIBS=OFF \
72+
-D CMAKE_CXX_COMPILER=icpx \
73+
-D CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF \
74+
-D CMAKE_CXX_FLAGS="-fp-model=precise -Wno-pass-failed" \
75+
-D CMAKE_INSTALL_PREFIX= \
76+
-D Kokkos_ROOT="$PWD/../../kokkos/install" \
77+
-D KokkosKernels_ENABLE_TESTS_AND_PERFSUITE=OFF \
78+
-D KokkosKernels_ENABLE_TESTS=ON \
79+
-D KokkosKernels_ENABLE_PERFTESTS=ON \
80+
-D KokkosKernels_ENABLE_EXAMPLES=ON \
81+
-D KokkosKernels_INST_FLOAT=ON \
82+
-D KokkosKernels_INST_COMPLEX_FLOAT=ON \
83+
-D KokkosKernels_INST_DOUBLE=ON \
84+
-D KokkosKernels_INST_COMPLEX_DOUBLE=ON \
85+
-D KokkosKernels_INST_ORDINAL_INT64_T=ON \
86+
-D KokkosKernels_INST_ORDINAL_INT=ON \
87+
-D KokkosKernels_INST_OFFSET_SIZE_T=ON \
88+
-D KokkosKernels_INST_OFFSET_INT=ON \
89+
-D KokkosKernels_ENABLE_TPL_MKL=ON
90+
91+
- name: build_kokkos_kernels
92+
run: cmake --build "$PWD/kokkos-kernels/build" -j 12
5393

5494
- name: test
55-
working-directory: build
56-
run: ctest --output-on-failure -V --timeout 3600
95+
working-directory: kokkos-kernels/build
96+
run: ctest --output-on-failure -V --timeout 3600

0 commit comments

Comments
 (0)