Skip to content

Commit

Permalink
CodeQL: commenting things and trying small syntax change...
Browse files Browse the repository at this point in the history
  • Loading branch information
lucbv committed May 2, 2024
1 parent cbd2691 commit 8738090
Showing 1 changed file with 41 additions and 41 deletions.
82 changes: 41 additions & 41 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,48 +59,48 @@ jobs:
ref: '4.3.00'
path: 'kokkos'

- name: configure_kokkos
run: |
mkdir -p kokkos/{build,install}
cd kokkos/build
cmake -S $PWD/.. \
-B $PWD \
-D Kokkos_ENABLE_SERIAL=ON \
-D CMAKE_CXX_FLAGS="-Werror" \
-D CMAKE_CXX_STANDARD=17 \
-D Kokkos_ENABLE_COMPILER_WARNINGS=ON \
-D Kokkos_ENABLE_TESTS=OFF \
-D Kokkos_ENABLE_DEPRECATED_CODE_4=OFF \
-D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=$PWD/../install
# - name: configure_kokkos
# run: |
# mkdir -p kokkos/{build,install}
# cd kokkos/build
# cmake -S $PWD/.. \
# -B $PWD \
# -D Kokkos_ENABLE_SERIAL=ON \
# -D CMAKE_CXX_FLAGS="-Werror" \
# -D CMAKE_CXX_STANDARD=17 \
# -D Kokkos_ENABLE_COMPILER_WARNINGS=ON \
# -D Kokkos_ENABLE_TESTS=OFF \
# -D Kokkos_ENABLE_DEPRECATED_CODE_4=OFF \
# -D CMAKE_BUILD_TYPE=RELEASE \
# -D CMAKE_INSTALL_PREFIX=$PWD/../install

- name: build_and_install_kokkos
working-directory: kokkos/build
run: make -j2 install
# - name: build_and_install_kokkos
# working-directory: kokkos/build
# run: make -j2 install

- name: configure_kokkos_kernels
run: |
mkdir -p kokkos-kernels/{build,install}
cd kokkos-kernels/build
cmake \
-S $PWD/..
-DKokkos_DIR=$PWD/../../kokkos/install/lib/cmake/Kokkos \
-DCMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }} \
-DCMAKE_CXX_FLAGS="-Wall -Wshadow -pedantic -Werror -Wsign-compare -Wtype-limits -Wignored-qualifiers -Wempty-body -Wuninitialized" \
-DCMAKE_INSTALL_PREFIX=$PWD/../install \
-DKokkosKernels_ENABLE_TESTS=ON \
-DKokkosKernels_ENABLE_EXAMPLES:BOOL=ON \
-DKokkosKernels_INST_DOUBLE=ON \
-DKokkosKernels_INST_LAYOUTLEFT:BOOL=ON \
-DKokkosKernels_INST_LAYOUTRIGHT:BOOL=OFF \
-DKokkosKernels_INST_OFFSET_INT=ON \
-DKokkosKernels_INST_OFFSET_SIZE_T=OFF
# - name: configure_kokkos_kernels
# run: |
# mkdir -p kokkos-kernels/{build,install}
# cd kokkos-kernels/build
# cmake \
# -S $PWD/..
# -DKokkos_DIR=$PWD/../../kokkos/install/lib/cmake/Kokkos \
# -DCMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }} \
# -DCMAKE_CXX_FLAGS="-Wall -Wshadow -pedantic -Werror -Wsign-compare -Wtype-limits -Wignored-qualifiers -Wempty-body -Wuninitialized" \
# -DCMAKE_INSTALL_PREFIX=$PWD/../install \
# -DKokkosKernels_ENABLE_TESTS=ON \
# -DKokkosKernels_ENABLE_EXAMPLES:BOOL=ON \
# -DKokkosKernels_INST_DOUBLE=ON \
# -DKokkosKernels_INST_LAYOUTLEFT:BOOL=ON \
# -DKokkosKernels_INST_LAYOUTRIGHT:BOOL=OFF \
# -DKokkosKernels_INST_OFFSET_INT=ON \
# -DKokkosKernels_INST_OFFSET_SIZE_T=OFF

- name: build_kokkos_kernels
working-directory: kokkos-kernels/build
run: make -j2
# - name: build_kokkos_kernels
# working-directory: kokkos-kernels/build
# run: make -j2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@ceaec5c11a131e0d282ff3b6f095917d234caace # v2.25.3
with:
category: "/language:c-cpp"
# - name: Perform CodeQL Analysis
# uses: github/codeql-action/analyze@ceaec5c11a131e0d282ff3b6f095917d234caace # v2.25.3
# with:
# category: "/language:c-cpp"

0 comments on commit 8738090

Please sign in to comment.