forked from ComputationalRadiationPhysics/picongpu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed 'thirdParty/cupla/' changes from 1e622a8ad..abc64f5a9
abc64f5a9 Merge pull request ComputationalRadiationPhysics#186 from psychocoderHPC/topic-updateAlpakaSubtree 1a6fd5c4f Merge commit '73279aa2aab50d3847d4645de4a0e738ae0724f8' into topic-updateAlpakaSubtree 73279aa2a Squashed 'alpaka/' changes from 34870a73ec..1d921dc064 849738bd7 Merge pull request ComputationalRadiationPhysics#185 from psychocoderHPC/topic-updateGitIrgnore 42fb4bddc update gitignore 2f692582a Merge pull request ComputationalRadiationPhysics#184 from psychocoderHPC/topic-updateToLatestAlpaka ff8c0b6ff Squashed 'alpaka/' changes from 79ca8bbb00..34870a73ec 7cde71357 Merge commit 'ff8c0b6ffa6f27e83ad092c435563137a85a8bd3' into topic-updateToLatestAlpaka 46ebaf3e8 fix multi GPU streams handling and default stream ac24b2e0d Merge pull request ComputationalRadiationPhysics#180 from psychocoderHPC/topic-versionIncreaseTo0.3.0 f2cd8e551 Merge pull request ComputationalRadiationPhysics#181 from psychocoderHPC/topic-updateToAlpaka0.5.0 3c8499375 Squashed 'alpaka/' changes from c2d14d09ea..79ca8bbb00 046a8a0e7 Merge commit '3c8499375f5d60084cf8ef055851e6c78369a142' into topic-updateToAlpaka0.5.0 60f3b604f Merge pull request ComputationalRadiationPhysics#179 from psychocoderHPC/fix-requiredCuplaRenamingHeadersForCOnfigHeaders 9593e54c8 increase version to 0.3.0 1242fb832 config headers: no not require cupla renaming headers 69f83971f Merge pull request ComputationalRadiationPhysics#177 from SimeonEhrig/multiVersionCI2 3dafd43ee GitLab-CI: extended to iterate over different versions 0a6656449 Merge pull request ComputationalRadiationPhysics#176 from psychocoderHPC/topic-wrongMasterToDevPort 55d44aa5f Fixed URLs in INSTALL.md 50967c83e Refactor GitLab CI 7e7509463 Merge pull request ComputationalRadiationPhysics#172 from jkelling/fixSemiWarnings 2870f63f4 Rm superfluous ; git-subtree-dir: thirdParty/cupla git-subtree-split: abc64f5a9852d0d7e389b9a5f4b988df70af1123
- Loading branch information
1 parent
f9cf8d5
commit 8d509a2
Showing
500 changed files
with
11,127 additions
and
6,333 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
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 |
---|---|---|
@@ -1,120 +1,78 @@ | ||
.base_job: | ||
script: | ||
# the default build type is Release | ||
# if neccesary, you can rerun the pipeline with another build type-> https://docs.gitlab.com/ee/ci/pipelines.html#manually-executing-pipelines | ||
# to change the build type, you must set the environment variable CUPLA_BUILD_TYPE | ||
- if [[ ! -v CUPLA_BUILD_TYPE ]] ; then | ||
CUPLA_BUILD_TYPE=Release ; | ||
fi | ||
- echo "number of processor threads $(nproc)" | ||
- $CXX --version | ||
- cmake --version | ||
# print boost version | ||
- echo -e "#include <boost/version.hpp>\n#include <iostream>\nint main() { std::cout << BOOST_VERSION << std::endl; return 0; }" | $CXX -x c++ - -o boost_version >/dev/null || { echo 0; } | ||
- echo "Boost version $(./boost_version)" | ||
- export cupla_DIR=$CI_PROJECT_DIR | ||
# use one build directory for all build configurations | ||
- mkdir build | ||
- cd build | ||
- echo "Build type-> $CUPLA_BUILD_TYPE" | ||
# ALPAKA_ACCS contains the backends, which are used for each build | ||
# the backends are set in the sepcialized base jobs .base_gcc,.base_clang and.base_cuda | ||
- for CMAKE_FLAGS in $ALPAKA_ACCS ; do | ||
echo "###################################################" | ||
&& echo "# Example Matrix Multiplication (adapted original)" | ||
&& echo "###################################################" | ||
&& echo "can not run with CPU_B_SEQ_T_SEQ due to missing elements layer in original SDK example" | ||
&& echo "CPU_B_SEQ_T_OMP2/THREADS too many threads necessary (256)" | ||
&& if [[ $CMAKE_FLAGS =~ -*DALPAKA_ACC_GPU_CUDA_ENABLE=ON.* ]]; then | ||
cmake $cupla_DIR/example/CUDASamples/matrixMul/ $CMAKE_FLAGS -DCMAKE_BUILD_TYPE=$CUPLA_BUILD_TYPE | ||
&& make -j | ||
&& time ./matrixMul -wA=64 -wB=64 -hA=64 -hB=64 | ||
&& rm -r * ; | ||
fi | ||
&& echo "###################################################" | ||
&& echo "# Example Async API (adapted original)" | ||
&& echo "###################################################" | ||
&& echo "can not run with CPU_B_SEQ_T_SEQ due to missing elements layer in original SDK example" | ||
&& echo "CPU_B_SEQ_T_OMP2/THREADS too many threads necessary (512)" | ||
&& if [[ $CMAKE_FLAGS =~ -*DALPAKA_ACC_GPU_CUDA_ENABLE=ON.* ]]; then | ||
cmake $cupla_DIR/example/CUDASamples/asyncAPI/ $CMAKE_FLAGS -DCMAKE_BUILD_TYPE=$CUPLA_BUILD_TYPE | ||
&& make -j | ||
&& time ./asyncAPI | ||
&& rm -r * ; | ||
fi | ||
&& echo "###################################################" | ||
&& echo "# Example Async API (added elements layer)" | ||
&& echo "###################################################" | ||
&& cmake $cupla_DIR/example/CUDASamples/asyncAPI_tuned/ $CMAKE_FLAGS -DCMAKE_BUILD_TYPE=$CUPLA_BUILD_TYPE | ||
&& make -j | ||
&& time ./asyncAPI_tuned | ||
&& rm -r * | ||
&& echo "###################################################" | ||
&& echo "Example vectorAdd (added elements layer)" | ||
&& echo "###################################################" | ||
&& cmake $cupla_DIR/example/CUDASamples/vectorAdd/ $CMAKE_FLAGS -DCMAKE_BUILD_TYPE=$CUPLA_BUILD_TYPE | ||
&& make -j | ||
&& time ./vectorAdd 100000 | ||
&& rm -r * | ||
&& echo "###################################################" | ||
&& echo "Example cuplaVectorAdd (added elements layer)" | ||
&& echo "###################################################" | ||
&& cmake $cupla_DIR/example/CUDASamples/cuplaVectorAdd/ $CMAKE_FLAGS -DCMAKE_BUILD_TYPE=$CUPLA_BUILD_TYPE | ||
&& make -j | ||
&& time ./cuplaVectorAdd 100000 | ||
&& rm -r * ; | ||
done | ||
################################################################################ | ||
# CUPLA_CXX : {g++, clang++} | ||
# [g++] : {5, 6, 7, 8, 9} <list> | ||
# [clang++] : {4.0, 5.0, 6.0, 7, 8, 9, 10} <list> | ||
# CUPLA_BOOST_VERSIONS : {1.65.1, 1.66.0, 1.67.0, 1.68.0, 1.69.0, 1.70.0, 1.71.0, 1.72.0, 1.73.0} <list> | ||
# CUPLA_BUILD_TYPE : {Debug, Release} | ||
# CUPLA_CMAKE_ARGS : <string> | ||
include: | ||
- local: '/script/compiler_base.yml' | ||
|
||
.base_gcc: | ||
cuda92: | ||
image: registry.gitlab.com/hzdr/crp/alpaka-group-container/alpaka-ci:cuda9.2 | ||
variables: | ||
GIT_SUBMODULE_STRATEGY: normal | ||
CXX: g++ | ||
CC: gcc | ||
ALPAKA_ACCS: "-DALPAKA_ACC_CPU_B_SEQ_T_SEQ_ENABLE=ON | ||
-DALPAKA_ACC_CPU_B_SEQ_T_OMP2_ENABLE=ON | ||
-DALPAKA_ACC_CPU_B_OMP2_T_SEQ_ENABLE=ON" | ||
# -DALPAKA_ACC_CPU_B_SEQ_T_THREADS_ENABLE=ON | ||
extends: .base_job | ||
# x86_64 tag is used to get a multi-core CPU for the tests | ||
tags: | ||
- x86_64 | ||
CUPLA_BOOST_VERSIONS: "1.65.1 1.66.0 1.67.0 1.68.0 1.69.0 1.70.0 1.71.0 1.72.0 1.73.0" | ||
extends: .base_cuda | ||
|
||
cuda100: | ||
image: registry.gitlab.com/hzdr/crp/alpaka-group-container/alpaka-ci:cuda10.0 | ||
variables: | ||
CUPLA_BOOST_VERSIONS: "1.65.1 1.66.0 1.67.0 1.68.0 1.69.0 1.70.0 1.71.0 1.72.0 1.73.0" | ||
extends: .base_cuda | ||
|
||
cuda101: | ||
image: registry.gitlab.com/hzdr/crp/alpaka-group-container/alpaka-ci:cuda10.1 | ||
variables: | ||
CUPLA_BOOST_VERSIONS: "1.65.1 1.66.0 1.67.0 1.68.0 1.69.0 1.70.0 1.71.0 1.72.0 1.73.0" | ||
extends: .base_cuda | ||
|
||
cuda102: | ||
image: registry.gitlab.com/hzdr/crp/alpaka-group-container/alpaka-ci:cuda10.2 | ||
variables: | ||
CUPLA_BOOST_VERSIONS: "1.65.1 1.66.0 1.67.0 1.68.0 1.69.0 1.70.0 1.71.0 1.72.0 1.73.0" | ||
extends: .base_cuda | ||
|
||
.base_clang: | ||
gcc1: | ||
variables: | ||
GIT_SUBMODULE_STRATEGY: normal | ||
CXX: clang++ | ||
CC: clang | ||
ALPAKA_ACCS: "-DALPAKA_ACC_CPU_B_SEQ_T_SEQ_ENABLE=ON | ||
-DALPAKA_ACC_CPU_B_OMP2_T_SEQ_ENABLE=ON" | ||
# -DALPAKA_ACC_CPU_B_SEQ_T_OMP2_ENABLE=ON | ||
# -DALPAKA_ACC_CPU_B_SEQ_T_THREADS_ENABLE=ON | ||
extends: .base_job | ||
# x86_64 tag is used to get a multi-core CPU for the tests | ||
tags: | ||
- x86_64 | ||
CUPLA_CXX: "g++-5 g++-6 g++-7 g++-8 g++-9" | ||
CUPLA_BOOST_VERSIONS: "1.65.1 1.66.0 1.67.0" | ||
extends: .base_gcc | ||
|
||
.base_cuda: | ||
gcc2: | ||
variables: | ||
GIT_SUBMODULE_STRATEGY: normal | ||
CXX: g++ | ||
CC: gcc | ||
ALPAKA_ACCS: "-DALPAKA_ACC_GPU_CUDA_ENABLE=ON" | ||
before_script: | ||
- nvidia-smi | ||
- nvcc --version | ||
extends: .base_job | ||
tags: | ||
- cuda | ||
- intel | ||
CUPLA_CXX: "g++-5 g++-6 g++-7 g++-8 g++-9" | ||
CUPLA_BOOST_VERSIONS: "1.68.0 1.69.0 1.70.0" | ||
extends: .base_gcc | ||
|
||
gcc7: | ||
image: registry.gitlab.com/hzdr/cupla-docker/gcc7:latest | ||
gcc3: | ||
variables: | ||
CUPLA_CXX: "g++-5 g++-6 g++-7 g++-8 g++-9" | ||
CUPLA_BOOST_VERSIONS: "1.71.0 1.72.0 1.73.0" | ||
extends: .base_gcc | ||
|
||
clang7: | ||
image: registry.gitlab.com/hzdr/cupla-docker/clang7:latest | ||
clang: | ||
variables: | ||
CUPLA_CXX: "clang++-5.0 clang++-6.0 clang++-7 clang++-8 clang++-9 clang++-10" | ||
CUPLA_BOOST_VERSIONS: "1.65.1 1.66.0 1.67.0 1.68.0 1.69.0 1.70.0 1.71.0 1.72.0 1.73.0" | ||
extends: .base_clang | ||
|
||
cuda9: | ||
image: registry.gitlab.com/hzdr/cupla-docker/cuda9:latest | ||
extends: .base_cuda | ||
cudaClang92: | ||
image: registry.gitlab.com/hzdr/crp/alpaka-group-container/alpaka-ci:cuda9.2Clang | ||
variables: | ||
CUPLA_CXX: "clang++-8 clang++-9 clang++-10" | ||
CUPLA_BOOST_VERSIONS: "1.65.1 1.66.0 1.67.0 1.68.0 1.69.0 1.70.0 1.71.0 1.72.0 1.73.0" | ||
extends: .base_cuda_clang | ||
|
||
cudaClang100: | ||
image: registry.gitlab.com/hzdr/crp/alpaka-group-container/alpaka-ci:cuda10.0Clang | ||
variables: | ||
CUPLA_CXX: "clang++-8 clang++-9 clang++-10" | ||
CUPLA_BOOST_VERSIONS: "1.65.1 1.66.0 1.67.0 1.68.0 1.69.0 1.70.0 1.71.0 1.72.0 1.73.0" | ||
extends: .base_cuda_clang | ||
|
||
cudaClang101: | ||
image: registry.gitlab.com/hzdr/crp/alpaka-group-container/alpaka-ci:cuda10.1Clang | ||
variables: | ||
CUPLA_CXX: "clang++-9 clang++-10" | ||
CUPLA_BOOST_VERSIONS: "1.65.1 1.66.0 1.67.0 1.68.0 1.69.0 1.70.0 1.71.0 1.72.0 1.73.0" | ||
extends: .base_cuda_clang |
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
Oops, something went wrong.