Skip to content

Commit

Permalink
Squashed 'thirdParty/cupla/' changes from 3c25b123a..28e8da452
Browse files Browse the repository at this point in the history
28e8da452 Merge pull request ComputationalRadiationPhysics#225 from psychocoderHPC/topic-alpaka0.9.0
78aae673f change CI test combination
6ab7ce907 changes required to support alpaka 0.9.0
fd97867b4 Merge commit 'c8e3798b399d2c22fa83ed7c9c3379fa528c4881' into topic-alpaka0.9.0
c8e3798b3 Squashed 'alpaka/' changes from 857495c5cd..146b6e6d49
017d7e6c5 Merge pull request ComputationalRadiationPhysics#223 from psychocoderHPC/topic-updateHIPCICfg
fc2eda203 CI: change HIP CI configuration

git-subtree-dir: thirdParty/cupla
git-subtree-split: 28e8da4527d1b538eba05bf8b95e4eec63a934e9
  • Loading branch information
Third Party authored and psychocoderHPC committed May 2, 2022
1 parent 0a43094 commit 9d9977e
Show file tree
Hide file tree
Showing 614 changed files with 27,412 additions and 19,280 deletions.
108 changes: 44 additions & 64 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
################################################################################
# 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>
# [g++] : {7, 8, 9, 10} <list>
# [clang++] : {10, 11} <list>
# CUPLA_BOOST_VERSIONS : {1.74.0, 1.75.0} <list>
# CUPLA_BUILD_TYPE : {Debug, Release}
# CUPLA_CMAKE_ARGS : <string>
include:
Expand Down Expand Up @@ -32,98 +32,78 @@ pull-request-validation:
tags:
- x86_64

cuda92:
cuda110:
stage: compile-and-run
image: registry.gitlab.com/hzdr/crp/alpaka-group-container/alpaka-ci-cuda92-gcc:1.4
image: registry.gitlab.com/hzdr/crp/alpaka-group-container/alpaka-ci-ubuntu20.04-cuda110-gcc:2.0
variables:
CUPLA_CXX: "g++-6"
# Workaround requires to enable debug build:
# GCC-5.5 has broken avx512vlintrin.h in Release mode with NVCC 9.X
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=76731
# https://github.com/tensorflow/tensorflow/issues/10220
CUPLA_BUILD_TYPE: "Debug"
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"
CUPLA_BOOST_VERSIONS: "1.74.0 1.75.0"
extends: .base_cuda

cuda100:
cuda114:
stage: compile-and-run
image: registry.gitlab.com/hzdr/crp/alpaka-group-container/alpaka-ci-cuda100-gcc:1.4
image: registry.gitlab.com/hzdr/crp/alpaka-group-container/alpaka-ci-ubuntu20.04-cuda114-gcc:2.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:
stage: compile-and-run
image: registry.gitlab.com/hzdr/crp/alpaka-group-container/alpaka-ci-cuda101-gcc:1.4
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:
stage: compile-and-run
image: registry.gitlab.com/hzdr/crp/alpaka-group-container/alpaka-ci-cuda102-gcc:1.4
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"
CUPLA_BOOST_VERSIONS: "1.74.0 1.75.0"
extends: .base_cuda

gcc1:
stage: compile-and-run
variables:
CUPLA_CXX: "g++-5 g++-6 g++-7 g++-8 g++-9"
CUPLA_BOOST_VERSIONS: "1.65.1 1.66.0 1.67.0"
CUPLA_CXX: "g++-7 g++-8 g++-9 g++-10"
CUPLA_BOOST_VERSIONS: "1.74.0 1.75.0"
extends: .base_gcc

gcc2:
stage: compile-and-run
variables:
CUPLA_CXX: "g++-5 g++-6 g++-7 g++-8 g++-9"
CUPLA_BOOST_VERSIONS: "1.68.0 1.69.0 1.70.0"
CUPLA_CXX: "g++-7 g++-8 g++-9 g++-10"
CUPLA_BOOST_VERSIONS: "1.74.0 1.75.0"
extends: .base_gcc

gcc3:
stage: compile-and-run
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"
CUPLA_CXX: "g++-7 g++-8 g++-9 g++-10"
CUPLA_BOOST_VERSIONS: "1.74.0 1.75.0"
extends: .base_gcc

clang:
stage: compile-and-run
variables:
CUPLA_CXX: "clang++-5.0 clang++-6.0 clang++-7 clang++-8 clang++-9 clang++-10 clang++-11"
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"
CUPLA_CXX: "clang++-10 clang++-11"
CUPLA_BOOST_VERSIONS: "1.74.0 1.75.0"
extends: .base_clang

cudaClang92:
cudaClang110:
stage: compile-and-run
image: registry.gitlab.com/hzdr/crp/alpaka-group-container/alpaka-ci-cuda92-clang:1.4
image: registry.gitlab.com/hzdr/crp/alpaka-group-container/alpaka-ci-ubuntu20.04-cuda110-clang:2.0
variables:
CUPLA_CXX: "clang++-10 clang++-11"
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"
CUPLA_CXX: "clang++-11"
CUPLA_BOOST_VERSIONS: "1.74.0 1.75.0"
extends: .base_cuda_clang

cudaClang100:
cudaClang114:
stage: compile-and-run
image: registry.gitlab.com/hzdr/crp/alpaka-group-container/alpaka-ci-cuda100-clang:1.4
image: registry.gitlab.com/hzdr/crp/alpaka-group-container/alpaka-ci-ubuntu20.04-cuda114-clang:2.0
variables:
CUPLA_CXX: "clang++-9 clang++-10 clang++-11"
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"
CUPLA_CXX: "clang++-11"
CUPLA_BOOST_VERSIONS: "1.74.0 1.75.0"
extends: .base_cuda_clang

cudaClang101:
hip43:
stage: compile-and-run
image: registry.gitlab.com/hzdr/crp/alpaka-group-container/alpaka-ci-cuda101-clang:1.4
image: registry.gitlab.com/hzdr/crp/alpaka-group-container/alpaka-ci-ubuntu20.04-rocm4.3:2.0
variables:
CUPLA_CXX: "clang++-9 clang++-10 clang++-11"
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
CMAKE_MODULE_PATH: "/opt/rocm-4.2.0/hip/cmake"
CUPLA_BOOST_VERSIONS: "1.74.0 1.75.0"
extends: .base_hip

hip42:
hip45:
stage: compile-and-run
image: registry.gitlab.com/hzdr/crp/alpaka-group-container/alpaka-ci-rocm4.2:1.4
image: registry.gitlab.com/hzdr/crp/alpaka-group-container/alpaka-ci-ubuntu20.04-rocm4.5:2.0
variables:
CMAKE_MODULE_PATH: "/opt/rocm-4.2.0/hip/cmake"
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"
CMAKE_MODULE_PATH: "/opt/rocm-4.5.0/hip/cmake"
CUPLA_BOOST_VERSIONS: "1.74.0 1.75.0"
extends: .base_hip

################################################################################
Expand All @@ -134,10 +114,10 @@ hip42:
# use internal alpaka
addSubdirectoryInternal:
stage: compile-and-run
image: registry.gitlab.com/hzdr/crp/alpaka-group-container/alpaka-ci-gcc:1.4
image: registry.gitlab.com/hzdr/crp/alpaka-group-container/alpaka-ci-ubuntu20.04-gcc:2.0
variables:
GIT_SUBMODULE_STRATEGY: normal
CUPLA_BOOST_VERSION: 1.73.0
CUPLA_BOOST_VERSION: 1.74.0
CUPLA_ALPAKA_PROVIDER: "internal"
script:
- source script/integration/build_add_subdirectory.sh
Expand All @@ -148,10 +128,10 @@ addSubdirectoryInternal:
# use installed alpaka
addSubdirectoryExternal:
stage: compile-and-run
image: registry.gitlab.com/hzdr/crp/alpaka-group-container/alpaka-ci-gcc:1.4
image: registry.gitlab.com/hzdr/crp/alpaka-group-container/alpaka-ci-ubuntu20.04-gcc:2.0
variables:
GIT_SUBMODULE_STRATEGY: normal
CUPLA_BOOST_VERSION: 1.73.0
CUPLA_BOOST_VERSION: 1.74.0
CUPLA_ALPAKA_PROVIDER: "external"
script:
- source script/integration/install_alpaka.sh
Expand All @@ -163,10 +143,10 @@ addSubdirectoryExternal:
# alpaka was included in the project cmake before cupla
addSubdirectoryThirdPartyAlpaka:
stage: compile-and-run
image: registry.gitlab.com/hzdr/crp/alpaka-group-container/alpaka-ci-gcc:1.4
image: registry.gitlab.com/hzdr/crp/alpaka-group-container/alpaka-ci-ubuntu20.04-gcc:2.0
variables:
GIT_SUBMODULE_STRATEGY: normal
CUPLA_BOOST_VERSION: 1.73.0
CUPLA_BOOST_VERSION: 1.74.0
script:
- source script/integration/build_add_subdirectory_third_party_alpaka.sh
tags:
Expand All @@ -176,10 +156,10 @@ addSubdirectoryThirdPartyAlpaka:
# cupla was installed with disabled examples
findPackageWithoutExample:
stage: compile-and-run
image: registry.gitlab.com/hzdr/crp/alpaka-group-container/alpaka-ci-gcc:1.4
image: registry.gitlab.com/hzdr/crp/alpaka-group-container/alpaka-ci-ubuntu20.04-gcc:2.0
variables:
GIT_SUBMODULE_STRATEGY: normal
CUPLA_BOOST_VERSION: 1.73.0
CUPLA_BOOST_VERSION: 1.74.0
CUPLA_BUILD_EXAMPLE: "OFF"
script:
- source script/integration/install_alpaka.sh
Expand All @@ -192,10 +172,10 @@ findPackageWithoutExample:
# cupla was installed with enabled examples
findPackageWithExample:
stage: compile-and-run
image: registry.gitlab.com/hzdr/crp/alpaka-group-container/alpaka-ci-gcc:1.4
image: registry.gitlab.com/hzdr/crp/alpaka-group-container/alpaka-ci-ubuntu20.04-gcc:2.0
variables:
GIT_SUBMODULE_STRATEGY: normal
CUPLA_BOOST_VERSION: 1.73.0
CUPLA_BOOST_VERSION: 1.74.0
CUPLA_BUILD_EXAMPLE: "ON"
script:
- source script/integration/install_alpaka.sh
Expand Down
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ option(cupla_BUILD_EXAMPLES "Build examples" OFF)
################################################################################

# the min and max. supported alpaka version is also copied to the cuplaConfig.cmake
set(_CUPLA_MIN_ALPAKA_VERSION 0.8.0)
set(_CUPLA_UNSUPPORTED_ALPAKA_VERSION 0.9.0)
set(_CUPLA_MIN_ALPAKA_VERSION 0.9.0)
set(_CUPLA_UNSUPPORTED_ALPAKA_VERSION 1.0.0)

# do not search for alpaka if it already exists
# for example, a project that includes alpaka via add_subdirectory before including cupla via add_subdirectory
Expand Down
16 changes: 8 additions & 8 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- *Debian/Ubuntu:* `sudo apt-get install cmake file cmake-curses-gui`
- *Arch Linux:* `sudo pacman --sync cmake`

- **boost** 1.65.1 or higher
- **boost** 1.74.0 or higher
- is required by alpaka
- *Install Instructions:* https://github.com/alpaka-group/alpaka#dependencies

Expand All @@ -24,13 +24,13 @@ example/CUDASamples/matrixMul/matrixMul -wA=320 -wB=320 -hA=320 -hB=320
```

- list of supported `ACC_TYPE`s
- `ALPAKA_ACC_CPU_B_SEQ_T_OMP2_ENABLE`
- `ALPAKA_ACC_CPU_B_SEQ_T_THREADS_ENABLE`
- `ALPAKA_ACC_CPU_B_TBB_T_SEQ_ENABLE`
- `ALPAKA_ACC_GPU_CUDA_ENABLE`
- `ALPAKA_ACC_GPU_HIP_ENABLE`
- `ALPAKA_ACC_CPU_BT_OMP4_ENABLE`
- `ALPAKA_ACC_CPU_B_OMP2_T_SEQ_ENABLE` (only allowed in combination with
- `alpaka_ACC_CPU_B_SEQ_T_OMP2_ENABLE`
- `alpaka_ACC_CPU_B_SEQ_T_THREADS_ENABLE`
- `alpaka_ACC_CPU_B_TBB_T_SEQ_ENABLE`
- `alpaka_ACC_GPU_CUDA_ENABLE`
- `alpaka_ACC_GPU_HIP_ENABLE`
- `alpaka_ACC_CPU_BT_OMP4_ENABLE`
- `alpaka_ACC_CPU_B_OMP2_T_SEQ_ENABLE` (only allowed in combination with
`CUPLA_KERNEL_OPTI` and `CUPLA_KERNEL_ELEM`, because the `blockSize` must be `dim3(1,1,1)`)
see [TuningGuide.md](doc/TuningGuide.md)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Dependencies
------------

- **cmake 3.18.0**
- **[alpaka 0.8.X](https://github.com/alpaka-group/alpaka/)**
- **[alpaka 0.9.X](https://github.com/alpaka-group/alpaka/)**
- alpaka is loaded as `git subtree` within **cupla**, see [INSTALL.md](INSTALL.md)

Usage
Expand Down
Loading

0 comments on commit 9d9977e

Please sign in to comment.