Skip to content

Commit 39f8dbf

Browse files
chillenzerThird Party
andauthored
Update alpaka to 1.1.0 (alpaka-group#257)
* Remove alpaka to pull the latest release * Squashed 'alpaka/' content from commit a4142d3f git-subtree-dir: alpaka git-subtree-split: a4142d3feb7686d803e1ec5f25d7b2278337f455 --------- Co-authored-by: Third Party <[email protected]>
1 parent 8b74df7 commit 39f8dbf

File tree

275 files changed

+5441
-4392
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

275 files changed

+5441
-4392
lines changed

alpaka/.clang-format

Lines changed: 57 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@ DisableFormat: false
66

77
AccessModifierOffset: -4
88
AlignAfterOpenBracket: AlwaysBreak
9+
AlignArrayOfStructures: None
910
AlignConsecutiveAssignments: false
1011
AlignConsecutiveBitFields: false
1112
AlignConsecutiveDeclarations: false
1213
AlignConsecutiveMacros: false
1314
AlignEscapedNewlines: Right
1415
AlignOperands: Align
15-
AlignTrailingComments: false
16+
AlignTrailingComments:
17+
Kind: Never
1618
AllowAllArgumentsOnNextLine: false
17-
AllowAllConstructorInitializersOnNextLine: false
1819
AllowAllParametersOfDeclarationOnNextLine: false
1920
AllowShortBlocksOnASingleLine: Never
2021
AllowShortCaseLabelsOnASingleLine: false
@@ -29,78 +30,109 @@ AlwaysBreakTemplateDeclarations: Yes
2930
BinPackArguments: false
3031
BinPackParameters: false
3132
BitFieldColonSpacing: Both
33+
BreakAfterAttributes: Never
3234
BreakBeforeBinaryOperators: All
3335
BreakBeforeBraces: Allman
34-
BreakBeforeConceptDeclarations: true
36+
BreakBeforeConceptDeclarations: Always
37+
BreakBeforeInlineASMColon: OnlyMultiline
3538
BreakBeforeTernaryOperators: true
3639
BreakConstructorInitializers: BeforeComma
3740
BreakInheritanceList: BeforeComma
3841
BreakStringLiterals: true
3942
ColumnLimit: 119
4043
CommentPragmas: '^ COMMENT pragma:'
4144
CompactNamespaces: false
42-
ConstructorInitializerAllOnOneLineOrOnePerLine: true
4345
ConstructorInitializerIndentWidth: 4
4446
ContinuationIndentWidth: 4
4547
Cpp11BracedListStyle: true
46-
DeriveLineEnding: true
4748
DerivePointerAlignment: false
49+
EmptyLineAfterAccessModifier: Never
50+
EmptyLineBeforeAccessModifier: Always
4851
ExperimentalAutoDetectBinPacking: false
4952
FixNamespaceComments: true
5053
IncludeBlocks: Regroup
5154
IncludeIsMainRegex: '(Test)?$'
5255
IncludeIsMainSourceRegex: ''
56+
IndentAccessModifiers: false
5357
IndentCaseBlocks: true
5458
IndentCaseLabels: false
5559
IndentExternBlock: AfterExternBlock
5660
IndentGotoLabels: true
5761
IndentPPDirectives: AfterHash
58-
IndentRequires: true
62+
IndentRequiresClause: false
5963
IndentWidth: 4
6064
IndentWrappedFunctionNames: false
65+
InsertBraces: false
66+
InsertNewlineAtEOF: true
67+
IntegerLiteralSeparator:
68+
Binary: 4
69+
Decimal: 3
70+
DecimalMinDigits: 7
71+
Hex: 4
6172
KeepEmptyLinesAtTheStartOfBlocks: false
73+
LambdaBodyIndentation: Signature
74+
LineEnding: DeriveLF
6275
MacroBlockBegin: ''
6376
MacroBlockEnd: ''
6477
MaxEmptyLinesToKeep: 2
6578
NamespaceIndentation: All
79+
PackConstructorInitializers: CurrentLine
6680
PenaltyBreakAssignment: 2
6781
PenaltyBreakBeforeFirstCallParameter: 19
6882
PenaltyBreakComment: 300
6983
PenaltyBreakFirstLessLess: 120
84+
PenaltyBreakOpenParenthesis: 0 # default made explicit here
7085
PenaltyBreakString: 1000
7186
PenaltyBreakTemplateDeclaration: 10
7287
PenaltyExcessCharacter: 1000000
88+
PenaltyIndentedWhitespace: 0 # default made explicit here
7389
PenaltyReturnTypeOnItsOwnLine: 1000
7490
PointerAlignment: Left
75-
QualifierAlignment: Right
91+
PPIndentWidth: -1 # follow IndentWidth
92+
QualifierAlignment: Custom
93+
QualifierOrder: ['friend', 'static', 'inline', 'constexpr', 'type', 'const', 'volatile', 'restrict']
94+
ReferenceAlignment: Pointer # follow PointerAlignment
7695
ReflowComments: true
96+
RemoveBracesLLVM: false
97+
RemoveSemicolon: false
98+
RequiresClausePosition: WithPreceding
99+
RequiresExpressionIndentation: OuterScope
100+
ShortNamespaceLines: 0
77101
SortIncludes: true
78-
SortUsingDeclarations: true
102+
SortUsingDeclarations: Lexicographic
103+
SeparateDefinitionBlocks: Always
79104
SpaceAfterCStyleCast: true
80105
SpaceAfterLogicalNot: false
81106
SpaceAfterTemplateKeyword: false
107+
SpaceAroundPointerQualifiers: Default # follow PointerAlignment
82108
SpaceBeforeAssignmentOperators: true
83109
SpaceBeforeCaseColon: false
84110
SpaceBeforeCpp11BracedList: false
85111
SpaceBeforeCtorInitializerColon: true
86112
SpaceBeforeInheritanceColon: true
87113
SpaceBeforeParens: Never
88114
SpaceBeforeRangeBasedForLoopColon: true
115+
SpaceBeforeSquareBrackets: false
89116
SpaceInEmptyBlock: false
90117
SpaceInEmptyParentheses: false
91118
SpacesBeforeTrailingComments: 1
92119
SpacesInAngles: false
93120
SpacesInConditionalStatement: false
94121
SpacesInContainerLiterals: false
95122
SpacesInCStyleCastParentheses: false
123+
SpacesInLineCommentPrefix:
124+
Minimum: 1
125+
Maximum: -1
96126
SpacesInParentheses: false
97127
SpacesInSquareBrackets: false
98-
SpaceBeforeSquareBrackets: false
99128
TabWidth: 4
100129
UseCRLF: false
101130
UseTab: Never
102131

103132
# Project specific options
133+
#AttributeMacros: []
134+
#ForEachMacros: []
135+
#IfMacros: []
104136
IncludeCategories:
105137
# Local headers (in "") above all else
106138
- Regex: '"([A-Za-z0-9.\/-_])+"'
@@ -118,5 +150,21 @@ IncludeCategories:
118150
# below alpaka's includes
119151
- Regex: '<([A-Za-z0-9.\/-_])+>'
120152
Priority: 4
153+
# Macros: []
154+
# NamespaceMacros: []
155+
StatementAttributeLikeMacros:
156+
- 'ALPAKA_DEVICE_VOLATILE'
157+
- 'ALPAKA_FN_ACC'
158+
- 'ALPAKA_FN_EXTERN'
159+
- 'ALPAKA_FN_HOST'
160+
- 'ALPAKA_FN_HOST_ACC'
161+
- 'ALPAKA_FN_INLINE'
162+
- 'ALPAKA_STATIC_ACC_MEM_CONSTANT'
163+
- 'ALPAKA_STATIC_ACC_MEM_GLOBAL'
164+
- 'ALPAKA_UNROLL'
165+
- 'ALPAKA_VECTORIZE_HINT'
166+
#StatementMacros: []
167+
#TypenameMacros: []
168+
#WhitespaceSensitiveMacros: []
121169

122170
...

alpaka/.github/workflows/ci.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ jobs:
8181
runs-on: ubuntu-20.04
8282
steps:
8383
- uses: actions/checkout@v3
84-
- uses: DoozyX/clang-format-lint-action@v0.14
84+
- uses: DoozyX/clang-format-lint-action@v0.16.2
8585
with:
86-
clangFormatVersion: 14
86+
clangFormatVersion: 16
8787
exclude: './thirdParty'
8888
inplace: True
8989
- run: |
@@ -119,9 +119,6 @@ jobs:
119119
env: {CXX: g++, CC: gcc, ALPAKA_CI_GCC_VER: 12, ALPAKA_CI_STDLIB: libstdc++, CMAKE_BUILD_TYPE: Debug, ALPAKA_BOOST_VERSION: 1.80.0, ALPAKA_CI_CMAKE_VER: 3.23.5, OMP_NUM_THREADS: 4, ALPAKA_CI_DOCKER_BASE_IMAGE_NAME: "ubuntu:22.04", ALPAKA_CI_ANALYSIS: ON, alpaka_DEBUG: 2}
120120

121121
### macOS
122-
- name: macos_xcode-13.2.1_debug
123-
os: macos-11
124-
env: {CXX: clang++, CC: clang, ALPAKA_CI_XCODE_VER: 13.2.1, CMAKE_BUILD_TYPE: Debug, ALPAKA_BOOST_VERSION: 1.76.0, alpaka_ACC_CPU_B_OMP2_T_SEQ_ENABLE: ON, alpaka_ACC_CPU_B_SEQ_T_OMP2_ENABLE: ON, ALPAKA_CI_BUILD_JOBS: 3}
125122
- name: macos_xcode-14.2_release
126123
os: macos-12
127124
env: {CXX: clang++, CC: clang, ALPAKA_CI_XCODE_VER: 14.2, CMAKE_BUILD_TYPE: Release, ALPAKA_BOOST_VERSION: 1.81.0, alpaka_ACC_CPU_B_OMP2_T_SEQ_ENABLE: ON, alpaka_ACC_CPU_B_SEQ_T_OMP2_ENABLE: ON, ALPAKA_CI_BUILD_JOBS: 3}
@@ -151,26 +148,25 @@ jobs:
151148
# g++
152149
# We can not enable UBSan when using gcc because it does not have a -fsanitize-blacklist option to suppress errors in boost etc.
153150
# gcc 7 ASan introduced 'stack-use-after-scope' which is triggered by GOMP_parallel
151+
# TODO: keep jobs until GitLab CI supports:
152+
# - disable CMAKE_CXX_EXTENSIONS=OFF
153+
# - Ubuntu 22.04
154154
- name: linux_gcc-9_debug
155155
os: ubuntu-20.04
156156
env: {CXX: g++, CC: gcc, ALPAKA_CI_GCC_VER: 9, ALPAKA_CI_STDLIB: libstdc++, CMAKE_BUILD_TYPE: Debug, ALPAKA_BOOST_VERSION: 1.74.0, ALPAKA_CI_CMAKE_VER: 3.22.6, OMP_NUM_THREADS: 4, ALPAKA_CI_DOCKER_BASE_IMAGE_NAME: "ubuntu:20.04", CMAKE_CXX_EXTENSIONS: OFF}
157-
- name: linux_gcc-10_release
158-
os: ubuntu-20.04
159-
env: {CXX: g++, CC: gcc, ALPAKA_CI_GCC_VER: 10, ALPAKA_CI_STDLIB: libstdc++, CMAKE_BUILD_TYPE: Release, ALPAKA_BOOST_VERSION: 1.75.0, ALPAKA_CI_CMAKE_VER: 3.23.5, OMP_NUM_THREADS: 2, ALPAKA_CI_DOCKER_BASE_IMAGE_NAME: "ubuntu:20.04"}
160-
- name: linux_gcc-11_debug
161-
os: ubuntu-20.04
162-
env: {CXX: g++, CC: gcc, ALPAKA_CI_GCC_VER: 11, ALPAKA_CI_STDLIB: libstdc++, CMAKE_BUILD_TYPE: Debug, ALPAKA_BOOST_VERSION: 1.78.0, ALPAKA_CI_CMAKE_VER: 3.22.6, OMP_NUM_THREADS: 2, ALPAKA_CI_DOCKER_BASE_IMAGE_NAME: "ubuntu:20.04"}
163157
- name: linux_gcc-12_release_c++20
164158
os: ubuntu-22.04
165159
env: {CXX: g++, CC: gcc, ALPAKA_CI_GCC_VER: 12, ALPAKA_CI_STDLIB: libstdc++, CMAKE_BUILD_TYPE: Release, ALPAKA_BOOST_VERSION: 1.80.0, ALPAKA_CI_CMAKE_VER: 3.24.4, OMP_NUM_THREADS: 2, ALPAKA_CI_DOCKER_BASE_IMAGE_NAME: "ubuntu:22.04", alpaka_CXX_STANDARD: 20, alpaka_USE_MDSPAN: "FETCH"}
166160
- name: linux_gcc-13_debug
167161
os: ubuntu-22.04
168162
env: {CXX: g++, CC: gcc, ALPAKA_CI_GCC_VER: 13, ALPAKA_CI_STDLIB: libstdc++, CMAKE_BUILD_TYPE: Debug, ALPAKA_BOOST_VERSION: 1.82.0, ALPAKA_CI_CMAKE_VER: 3.26.4, OMP_NUM_THREADS: 2, ALPAKA_CI_DOCKER_BASE_IMAGE_NAME: "ubuntu:22.04"}
169163

164+
# TODO: keep jobs until GitLab CI supports:
165+
# - disable CMAKE_CXX_EXTENSIONS=OFF
166+
# - Ubuntu 22.04
167+
# - libc++
168+
# - sanitizer jobs
170169
# clang++
171-
- name: linux_clang-9_debug
172-
os: ubuntu-20.04
173-
env: {CXX: clang++, CC: clang, ALPAKA_CI_CLANG_VER: 9, ALPAKA_CI_STDLIB: libstdc++, CMAKE_BUILD_TYPE: Debug, ALPAKA_BOOST_VERSION: 1.74.0, ALPAKA_CI_CMAKE_VER: 3.22.6, OMP_NUM_THREADS: 1, ALPAKA_CI_DOCKER_BASE_IMAGE_NAME: "ubuntu:20.04"}
174170
- name: linux_clang-10_release
175171
os: ubuntu-20.04
176172
env: {CXX: clang++, CC: clang, ALPAKA_CI_CLANG_VER: 10, ALPAKA_CI_STDLIB: libc++, CMAKE_BUILD_TYPE: Release, ALPAKA_BOOST_VERSION: 1.75.0, ALPAKA_CI_CMAKE_VER: 3.23.5, OMP_NUM_THREADS: 4, ALPAKA_CI_DOCKER_BASE_IMAGE_NAME: "ubuntu:20.04", alpaka_ACC_CPU_B_TBB_T_SEQ_ENABLE: OFF, CMAKE_CXX_EXTENSIONS: OFF}
@@ -184,6 +180,9 @@ jobs:
184180
- name: linux_clang-16_debug_ubsan
185181
os: ubuntu-latest
186182
env: {CXX: clang++, CC: clang, ALPAKA_CI_CLANG_VER: 16, ALPAKA_CI_STDLIB: libstdc++, CMAKE_BUILD_TYPE: Debug, ALPAKA_BOOST_VERSION: 1.77.0, ALPAKA_CI_CMAKE_VER: 3.23.5, OMP_NUM_THREADS: 4, ALPAKA_CI_DOCKER_BASE_IMAGE_NAME: "ubuntu:22.04", CMAKE_CXX_EXTENSIONS: OFF, ALPAKA_CI_SANITIZERS: UBSan}
183+
- name: linux_clang-16_debug_tsan
184+
os: ubuntu-latest
185+
env: {CXX: clang++, CC: clang, ALPAKA_CI_CLANG_VER: 16, ALPAKA_CI_STDLIB: libstdc++, CMAKE_BUILD_TYPE: Debug, ALPAKA_BOOST_VERSION: 1.77.0, ALPAKA_CI_CMAKE_VER: 3.23.5, OMP_NUM_THREADS: 4, ALPAKA_CI_DOCKER_BASE_IMAGE_NAME: "ubuntu:22.04", alpaka_ACC_CPU_B_OMP2_T_SEQ_ENABLE: OFF, alpaka_ACC_CPU_B_SEQ_T_OMP2_ENABLE: OFF, alpaka_ACC_CPU_B_TBB_T_SEQ_ENABLE: OFF, CMAKE_CXX_EXTENSIONS: OFF, ALPAKA_CI_SANITIZERS: TSan}
187186

188187
steps:
189188
- name: check filter

alpaka/.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ build/
3838
/.settings/
3939

4040
# Visual Studio Code project files
41-
.vscode/
41+
.vscode
4242

4343
# Visual Studio project files
4444
.vs/
@@ -57,3 +57,6 @@ jobs.yml
5757
# pipenv files
5858
Pipfile
5959
Pipfile.lock
60+
61+
# user specific cmake preset settings
62+
CMakeUserPresets.json

alpaka/.gitlab-ci.yml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,18 @@ generate:
2626
script:
2727
- apk update && apk add python3~=3.11 py3-pip
2828
- pip3 install -r script/job_generator/requirements.txt
29-
# it's enough to verify one time, because --compile-only und --runtime-only generates the same job matrix and filter it
30-
- python3 script/job_generator/job_generator.py ${ALPAKA_GITLAB_CI_GENERATOR_CONTAINER_VERSION} --verify --compile-only -o compile_only.yml
31-
- python3 script/job_generator/job_generator.py ${ALPAKA_GITLAB_CI_GENERATOR_CONTAINER_VERSION} --runtime-only -o runtime.yml
29+
# it is sufficient to verify once, as the same job matrix is generated, verified and then filtered each time
30+
- python3 script/job_generator/job_generator.py ${ALPAKA_GITLAB_CI_GENERATOR_CONTAINER_VERSION} --verify --wave compile_only_job -o compile_only.yml
31+
- python3 script/job_generator/job_generator.py ${ALPAKA_GITLAB_CI_GENERATOR_CONTAINER_VERSION} --wave runtime_job_cpu -o runtime_cpu.yml
32+
- python3 script/job_generator/job_generator.py ${ALPAKA_GITLAB_CI_GENERATOR_CONTAINER_VERSION} --wave runtime_job_gpu -o runtime_gpu.yml
3233
- cat compile_only.yml
33-
- cat runtime.yml
34+
- cat runtime_cpu.yml
35+
- cat runtime_gpu.yml
3436
artifacts:
3537
paths:
3638
- compile_only.yml
37-
- runtime.yml
39+
- runtime_cpu.yml
40+
- runtime_gpu.yml
3841
expire_in: 1 week
3942
interruptible: true
4043

@@ -46,10 +49,18 @@ run-compile-only-test:
4649
job: generate
4750
strategy: depend
4851

49-
run-runtime-test:
52+
run-runtime-cpu-test:
5053
stage: run-test-jobs
5154
trigger:
5255
include:
53-
- artifact: runtime.yml
56+
- artifact: runtime_cpu.yml
57+
job: generate
58+
strategy: depend
59+
60+
run-runtime-gpu-test:
61+
stage: run-test-jobs
62+
trigger:
63+
include:
64+
- artifact: runtime_gpu.yml
5465
job: generate
5566
strategy: depend

0 commit comments

Comments
 (0)