Skip to content

Use 64bit integer when computing the ordered list pivot #1261

Use 64bit integer when computing the ordered list pivot

Use 64bit integer when computing the ordered list pivot #1261

Workflow file for this run

name: CI Build
# Triggers on push and branches on the master
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
RUNNER_ENV : github_runner
RUNNER_SPACK_BRANCH : e4s-23.08
CC : gcc
FC : gfortran
CXX : g++
# Allows to run this workflow manually from the Actions tab
#workflow_dispatch:
jobs:
debug:
runs-on: [self-hosted, Linux]
strategy:
fail-fast: false
matrix:
build_type : [ Debug ]
shared_type : [ OFF, ON ]
profiling : [ ON ]
name: "Type=${{ matrix.build_type }} shared=${{ matrix.shared_type }} profiling=${{matrix.profiling}}"
env:
BUILD_DIRECTORY : "${{github.workspace}}/build/${{ matrix.build_type }}/shared_${{matrix.shared_type}}/profile_${{matrix.profiling}}"
INSTALL_DIRECTORY : "${{github.workspace}}/install/${{ matrix.build_type }}/shared_${{matrix.shared_type}}/profile_${{matrix.profiling}}"
BUILD_CONFIG : >
-G Ninja
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DPARSEC_DEBUG_NOISIER=ON
-DPARSEC_DEBUG_PARANOID=ON
-DBUILD_SHARED_LIBS=${{ matrix.shared_type }}
-DPARSEC_PROF_TRACE=${{ matrix.profiling }}
-DMPIEXEC_PREFLAGS='--bind-to;none;--oversubscribe'
-DCMAKE_INSTALL_PREFIX=$INSTALL_DIRECTORY
steps:
- uses: actions/checkout@v2
- name: Setup Build Environment ${{ runner.os }}
id: setup
# Create a separate build directory and use it for all subsequent commands
run: |
source ${{github.workspace}}/.github/CI/spack_setup.sh
spack compiler list
cmake -E make_directory ${{ env.BUILD_DIRECTORY }}
- name: Configure CMake
id: configure
# Use a bash shell so we can use the same syntax for environment variable
# access regardless of the host operating system
working-directory: ${{ env.BUILD_DIRECTORY }}
timeout-minutes: 10
shell: bash
# Note the current convention is to use the -S and -B options here to specify source
# and build directories, but this is only available with CMake 3.13 and higher.
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
run: |
source ${{github.workspace}}/.github/CI/spack_setup.sh
echo CC=gcc CXX=g++ FC=gfortran cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE $BUILD_CONFIG
CC=gcc CXX=g++ FC=gfortran cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE $BUILD_CONFIG
- name: Build
working-directory: ${{ env.BUILD_DIRECTORY }}
timeout-minutes: 10
shell: bash
# Execute the build. You can specify a specific target with "--target <NAME>"
run: |
source ${{github.workspace}}/.github/CI/spack_setup.sh
cmake --build .
- name: Install
working-directory: ${{ env.BUILD_DIRECTORY }}
timeout-minutes: 2
shell: bash
run: |
source ${{github.workspace}}/.github/CI/spack_setup.sh
cmake --build . --target install
- name: Test
if: ${{ startsWith(matrix.build_type, 'Release') }}
working-directory: ${{ env.BUILD_DIRECTORY }}
timeout-minutes: 10
shell: bash
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
# run: ctest -C $BUILD_TYPE
run: |
source ${{github.workspace}}/.github/CI/spack_setup.sh
ctest --output-on-failure
- name: Save Artifact
if: failure()
uses: actions/upload-artifact@v3
with:
name: CMake-error-log
path: ${{ env.BUILD_DIRECTORY }}/CMakeFiles/CMakeError.log
release:
needs: debug
runs-on: [self-hosted, Linux]
strategy:
fail-fast: false
matrix:
build_type : [ Release ]
shared_type : [ ON ]
profiling : [ OFF, ON ]
name: "Type=${{ matrix.build_type }} shared=${{ matrix.shared_type }} profiling=${{matrix.profiling}}"
env:
BUILD_DIRECTORY : "${{github.workspace}}/build/${{ matrix.build_type }}/shared_${{matrix.shared_type}}/profile_${{matrix.profiling}}"
INSTALL_DIRECTORY : "${{github.workspace}}/install/${{ matrix.build_type }}/shared_${{matrix.shared_type}}/profile_${{matrix.profiling}}"
BUILD_CONFIG : >
-G Ninja
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DPARSEC_DEBUG_NOISIER=OFF
-DBUILD_SHARED_LIBS=${{ matrix.shared_type }}
-DPARSEC_PROF_TRACE=${{ matrix.profiling }}
-DMPIEXEC_PREFLAGS='--bind-to;none;--oversubscribe'
-DCMAKE_INSTALL_PREFIX=$INSTALL_DIRECTORY
steps:
- uses: actions/checkout@v2
- name: Check PR updates Flex/Bison Archive iff .y/.l modified
if: ${{ github.event_name == 'pull_request' }}
shell: bash
run: |
# Check if .l/.y files have been modified without corresponding update with `cmake --build . --target parsec_pregen_flex_bison`
if [[ `git --version | cut -d " " -f 3` > "2.0" ]]; then
# Make sure we fetch the branch we want to compare with
git fetch origin ${{ github.base_ref }}
git diff --name-only --diff-filter=AMRD origin/${{ github.base_ref }} -- contrib/pregen_flex_bison.tar '*.[ly]' | awk '/pregen_flex_bison.tar/{t=1} /.[ly]/{s=1} END{if(t-s) exit 1}'
fi
- name: Setup Build Environment ${{ runner.os }}
id: setup
# Create a separate build directory and use it for all subsequent commands
run: |
source ${{github.workspace}}/.github/CI/spack_setup.sh
spack compiler list
cmake -E make_directory ${{ env.BUILD_DIRECTORY }}
- name: Configure CMake
id: configure
# Use a bash shell so we can use the same syntax for environment variable
# access regardless of the host operating system
working-directory: ${{ env.BUILD_DIRECTORY }}
timeout-minutes: 10
shell: bash
# Note the current convention is to use the -S and -B options here to specify source
# and build directories, but this is only available with CMake 3.13 and higher.
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
run: |
source ${{github.workspace}}/.github/CI/spack_setup.sh
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE $BUILD_CONFIG
- name: Build
working-directory: ${{ env.BUILD_DIRECTORY }}
timeout-minutes: 10
shell: bash
# Execute the build. You can specify a specific target with "--target <NAME>"
run: |
source ${{github.workspace}}/.github/CI/spack_setup.sh
cmake --build .
- name: Install
working-directory: ${{ env.BUILD_DIRECTORY }}
timeout-minutes: 10
shell: bash
run: |
source ${{github.workspace}}/.github/CI/spack_setup.sh
cmake --build . --target install
- name: Save Build Artifact
if: failure()
uses: actions/upload-artifact@v3
with:
name: CMake-error-log
path: ${{ env.BUILD_DIRECTORY }}/CMakeFiles/CMakeError.log
- name: Test
# Disable the tests for now
if: ${{ startsWith(matrix.build_type, 'Release') }}
working-directory: ${{ env.BUILD_DIRECTORY }}
timeout-minutes: 20
shell: bash
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
# run: ctest -C $BUILD_TYPE
run: |
source ${{github.workspace}}/.github/CI/spack_setup.sh
# enable devices only in tests that explicitely require them
PARSEC_MCA_device_cuda_enabled=0
PARSEC_MCA_device_hip_enabled=0
# restrict memory use for oversubscribed runners
PARSEC_MCA_device_cuda_memory_use=10
PARSEC_MCA_device_hip_memory_use=10
ctest --output-on-failure
- name: Save Testing Artifact
if: failure()
uses: actions/upload-artifact@v3
with:
name: LastTest_log
path: ${{ env.BUILD_DIRECTORY }}/Testing/Temporary/LastTest.log