-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# Copyright (c) 2023 ETH Zurich | ||
# | ||
# SPDX-License-Identifier: BSL-1.0 | ||
# Distributed under the Boost Software License, Version 1.0. (See accompanying | ||
# file BOOST_LICENSE_1_0.rst or copy at http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
include: | ||
- local: '.gitlab/includes/common_pipeline.yml' | ||
- local: '.gitlab/includes/common_spack_pipeline.yml' | ||
|
||
.variables_gcc10_apex_config: | ||
variables: | ||
ARCH: linux-ubuntu22.04-broadwell | ||
BUILD_TYPE: Release | ||
COMPILER: gcc@10.3.0 | ||
CXXSTD: 17 | ||
SPACK_SPEC: "pika@main +apex arch=$ARCH %${COMPILER} malloc=system cxxstd=$CXXSTD \ | ||
^apex@2.6.3~openmp~papi" | ||
|
||
gcc10_apex_spack_image: | ||
stage: spack_configs | ||
needs: [base_spack_image] | ||
extends: | ||
- .container-builder | ||
- .variables_gcc10_apex_config | ||
before_script: | ||
- export DOCKERFILE_SHA=`sha256sum $DOCKERFILE | head -c 16` | ||
- CONFIG_TAG=`echo $DOCKERFILE_SHA-$ARCH-$BASE_IMAGE-$COMPILER-$SPACK_SPEC | sha256sum - | head -c 16` | ||
- compiler=${COMPILER/@/-} | ||
- export PERSIST_IMAGE_NAME=$CSCS_REGISTRY_PATH/base/pika-$compiler:$CONFIG_TAG | ||
- echo -e "compiler=$compiler" >> compiler.env | ||
- echo -e "BASE_IMAGE=$PERSIST_IMAGE_NAME" >> compiler.env | ||
variables: | ||
DOCKERFILE: .gitlab/docker/Dockerfile.spack_compiler | ||
DOCKER_BUILD_ARGS: '["BASE_IMAGE","ARCH","COMPILER","SPACK_SPEC"]' | ||
artifacts: | ||
reports: | ||
dotenv: compiler.env | ||
|
||
gcc10_apex_release_build: | ||
stage: build | ||
extends: | ||
- .container-builder | ||
- .variables_gcc10_apex_config | ||
- .cmake_variables_common | ||
needs: | ||
- gcc10_apex_spack_image | ||
before_script: | ||
- export DOCKERFILE_SHA=`sha256sum $DOCKERFILE | head -c 16` | ||
- build_type=`echo $BUILD_TYPE | tr '[:upper:]' '[:lower:]'` | ||
- configuration=$DOCKERFILE_SHA-$BASE_IMAGE-$BUILD_DIR-$CMAKE_COMMON_FLAGS-$CMAKE_FLAGS-$CI_COMMIT_SHORT_SHA-$SOURCE_DIR | ||
- configuration=${configuration//-D/} | ||
- CONFIG_TAG=`echo $configuration | sha256sum - | head -c 16` | ||
- export PERSIST_IMAGE_NAME=$CSCS_REGISTRY_PATH/pika-$compiler-$build_type-build:$CONFIG_TAG | ||
- echo -e "PERSIST_IMAGE_NAME=$PERSIST_IMAGE_NAME" > build.env | ||
variables: | ||
DOCKERFILE: .gitlab/docker/Dockerfile.spack_build | ||
CMAKE_FLAGS: "-DCMAKE_BUILD_TYPE=$BUILD_TYPE -DPIKA_WITH_CXX_STANDARD=$CXXSTD \ | ||
-DPIKA_WITH_APEX=ON -DPIKA_WITH_MALLOC=system \ | ||
-DPIKA_WITH_SPINLOCK_DEADLOCK_DETECTION=ON" | ||
DOCKER_BUILD_ARGS: '["BASE_IMAGE","SOURCE_DIR","BUILD_DIR","CMAKE_COMMON_FLAGS","CMAKE_FLAGS"]' | ||
artifacts: | ||
reports: | ||
dotenv: build.env | ||
|
||
gcc10_apex_release_test: | ||
extends: | ||
- .variables_gcc10_apex_config | ||
- .test_common_mc | ||
needs: | ||
- gcc10_apex_release_build | ||
script: | ||
- spack arch | ||
- spack build-env $spack_spec -- bash -c "ctest --label-exclude COMPILE_ONLY --test-dir ${BUILD_DIR} -j$(($(nproc)/2)) --timeout 120 --output-on-failure --no-compress-output --no-tests=error" | ||
image: $PERSIST_IMAGE_NAME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters