Skip to content

Commit ed32314

Browse files
Merge branch 'master' of ssh.gitlab.huaweirc.ch:zrc-von-neumann-lab/runtime-system-innovations/hicr
2 parents 5a2dc45 + 4b05902 commit ed32314

File tree

158 files changed

+2974
-1357
lines changed

Some content is hidden

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

158 files changed

+2974
-1357
lines changed

.clang-format

Lines changed: 32 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
2-
Language: Cpp
3-
BasedOnStyle: LLVM
2+
Language: Cpp
3+
BasedOnStyle: LLVM
44
AccessModifierOffset: -4
55
AlignAfterOpenBracket: Align
66
AlignConsecutiveAssignments: true
77
AlignConsecutiveDeclarations: true
88
AlignEscapedNewlines: Right
9-
AlignOperands: true
9+
AlignOperands: true
1010
AlignTrailingComments: true
1111
AllowAllParametersOfDeclarationOnNextLine: false
1212
AllowShortBlocksOnASingleLine: Always
@@ -23,17 +23,17 @@ BinPackParameters: false
2323
AllowShortLambdasOnASingleLine: All
2424
BreakBeforeBraces: Custom
2525
BraceWrapping:
26-
AfterClass: true
27-
AfterCaseLabel : true
26+
AfterClass: true
27+
AfterCaseLabel: true
2828
AfterControlStatement: true
29-
AfterEnum: true
30-
AfterFunction: true
31-
AfterNamespace: true
29+
AfterEnum: true
30+
AfterFunction: true
31+
AfterNamespace: true
3232
AfterObjCDeclaration: true
33-
AfterStruct: true
34-
AfterUnion: true
35-
BeforeCatch: true
36-
BeforeElse: true
33+
AfterStruct: true
34+
AfterUnion: true
35+
BeforeCatch: true
36+
BeforeElse: true
3737
BeforeLambdaBody: false
3838
BeforeWhile: true
3939
IndentBraces: false
@@ -48,15 +48,15 @@ BreakConstructorInitializersBeforeComma: false
4848
BreakConstructorInitializers: BeforeColon
4949
BreakAfterJavaFieldAnnotations: false
5050
BreakStringLiterals: false
51-
ColumnLimit: 180
52-
CommentPragmas: '^ IWYU pragma:'
51+
ColumnLimit: 180
52+
CommentPragmas: "^ IWYU pragma:"
5353
CompactNamespaces: false
5454
ConstructorInitializerAllOnOneLineOrOnePerLine: false
5555
ConstructorInitializerIndentWidth: 2
5656
ContinuationIndentWidth: 2
5757
Cpp11BracedListStyle: true
5858
DerivePointerAlignment: false
59-
DisableFormat: false
59+
DisableFormat: false
6060
EmptyLineAfterAccessModifier: Always
6161
EmptyLineBeforeAccessModifier: Always
6262
ExperimentalAutoDetectBinPacking: false
@@ -65,24 +65,24 @@ ForEachMacros:
6565
- foreach
6666
- Q_FOREACH
6767
- BOOST_FOREACH
68-
IncludeBlocks: Preserve
68+
IncludeBlocks: Preserve
6969
IncludeCategories:
70-
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
71-
Priority: 2
72-
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
73-
Priority: 3
74-
- Regex: '.*'
75-
Priority: 1
76-
IncludeIsMainRegex: '(Test)?$'
70+
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
71+
Priority: 2
72+
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
73+
Priority: 3
74+
- Regex: ".*"
75+
Priority: 1
76+
IncludeIsMainRegex: "(Test)?$"
7777
IndentCaseLabels: false
7878
IndentPPDirectives: BeforeHash
79-
IndentWidth: 2
79+
IndentWidth: 2
8080
IndentWrappedFunctionNames: false
8181
JavaScriptQuotes: Leave
8282
JavaScriptWrapImports: true
8383
KeepEmptyLinesAtTheStartOfBlocks: false
84-
MacroBlockBegin: ''
85-
MacroBlockEnd: ''
84+
MacroBlockBegin: ""
85+
MacroBlockEnd: ""
8686
MaxEmptyLinesToKeep: 1
8787
NamespaceIndentation: None
8888
ObjCBinPackProtocolList: Auto
@@ -99,8 +99,8 @@ PenaltyBreakTemplateDeclaration: 10
9999
PenaltyExcessCharacter: 50
100100
PenaltyReturnTypeOnItsOwnLine: 600
101101
PointerAlignment: Right
102-
ReflowComments: false
103-
SortIncludes: false
102+
ReflowComments: false
103+
SortIncludes: false
104104
SortUsingDeclarations: true
105105
SpaceAfterCStyleCast: false
106106
SpaceAfterTemplateKeyword: true
@@ -112,15 +112,14 @@ SpaceBeforeParens: ControlStatements
112112
SpaceBeforeRangeBasedForLoopColon: true
113113
SpaceInEmptyParentheses: false
114114
SpacesBeforeTrailingComments: 1
115-
SpacesInAngles: false
115+
SpacesInAngles: false
116116
SpacesInContainerLiterals: true
117117
SpacesInCStyleCastParentheses: false
118118
SpacesInParentheses: false
119119
SpacesInSquareBrackets: false
120-
Standard: c++20
120+
Standard: c++20
121121
StatementMacros:
122122
- Q_UNUSED
123123
- QT_REQUIRE_VERSION
124-
TabWidth: 2
125-
UseTab: Never
126-
...
124+
TabWidth: 2
125+
UseTab: Never

.clang-tidy

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
---
2-
Checks: 'clang-diagnostic-*,clang-analyzer-*,clang-diagnostic-*,clang-analyzer-*,cppcoreguidelines-*,modernize-*,-modernize-use-trailing-return-type,-clang-analyzer-cplusplus*,performance-*,-cppcoreguidelines-pro-type-vararg,-cppcoreguidelines-special-member-functions,-cppcoreguidelines-macro-usage,-cppcoreguidelines-pro-bounds-pointer-arithmetic,-clang-analyzer-optin.mpi.MPI-Checker,-cppcoreguidelines-owning-memory,-cppcoreguidelines-no-malloc'
3-
WarningsAsErrors: 'true,*'
4-
HeaderFilterRegex: ''
2+
Checks: "clang-diagnostic-*,clang-analyzer-*,clang-diagnostic-*,clang-analyzer-*,cppcoreguidelines-*,modernize-*,-modernize-use-trailing-return-type,-clang-analyzer-cplusplus*,performance-*,-cppcoreguidelines-pro-type-vararg,-cppcoreguidelines-special-member-functions,-cppcoreguidelines-macro-usage,-cppcoreguidelines-pro-bounds-pointer-arithmetic,-clang-analyzer-optin.mpi.MPI-Checker,-cppcoreguidelines-owning-memory,-cppcoreguidelines-no-malloc"
3+
WarningsAsErrors: "true,*"
4+
HeaderFilterRegex: ""
55
AnalyzeTemporaryDtors: false
6-
FormatStyle: none
6+
FormatStyle: none
77
CheckOptions:
8-
performance-unnecessary-copy-initialization.ExcludedContainerTypes: ''
8+
performance-unnecessary-copy-initialization.ExcludedContainerTypes: ""
99
modernize-loop-convert.MinConfidence: reasonable
1010
modernize-replace-auto-ptr.IncludeStyle: llvm
11-
performance-move-const-arg.CheckTriviallyCopyableMove: 'true'
12-
performance-unnecessary-value-param.AllowedTypes: ''
13-
google-readability-namespace-comments.ShortNamespaceLines: '10'
14-
cert-oop54-cpp.WarnOnlyIfThisHasSuspiciousField: 'false'
15-
cppcoreguidelines-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic: 'true'
16-
cert-dcl16-c.NewSuffixes: 'L;LL;LU;LLU'
17-
performance-inefficient-vector-operation.EnableProto: 'false'
18-
modernize-loop-convert.MaxCopySize: '16'
19-
google-readability-namespace-comments.SpacesBeforeComments: '2'
20-
performance-faster-string-find.StringLikeClasses: '::std::basic_string;::std::basic_string_view'
21-
performance-for-range-copy.AllowedTypes: ''
11+
performance-move-const-arg.CheckTriviallyCopyableMove: "true"
12+
performance-unnecessary-value-param.AllowedTypes: ""
13+
google-readability-namespace-comments.ShortNamespaceLines: "10"
14+
cert-oop54-cpp.WarnOnlyIfThisHasSuspiciousField: "false"
15+
cppcoreguidelines-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic: "true"
16+
cert-dcl16-c.NewSuffixes: "L;LL;LU;LLU"
17+
performance-inefficient-vector-operation.EnableProto: "false"
18+
modernize-loop-convert.MaxCopySize: "16"
19+
google-readability-namespace-comments.SpacesBeforeComments: "2"
20+
performance-faster-string-find.StringLikeClasses: "::std::basic_string;::std::basic_string_view"
21+
performance-for-range-copy.AllowedTypes: ""
2222
performance-type-promotion-in-math-fn.IncludeStyle: llvm
23-
llvm-qualified-auto.AddConstToQualified: 'false'
23+
llvm-qualified-auto.AddConstToQualified: "false"
2424
modernize-loop-convert.NamingStyle: CamelCase
25-
google-readability-function-size.StatementThreshold: '800'
26-
llvm-else-after-return.WarnOnConditionVariables: 'false'
27-
performance-for-range-copy.WarnOnAllAutoCopies: 'false'
28-
performance-no-automatic-move.AllowedTypes: ''
29-
cert-str34-c.DiagnoseSignedUnsignedCharComparisons: 'false'
25+
google-readability-function-size.StatementThreshold: "800"
26+
llvm-else-after-return.WarnOnConditionVariables: "false"
27+
performance-for-range-copy.WarnOnAllAutoCopies: "false"
28+
performance-no-automatic-move.AllowedTypes: ""
29+
cert-str34-c.DiagnoseSignedUnsignedCharComparisons: "false"
3030
modernize-pass-by-value.IncludeStyle: llvm
31-
cert-err33-c.CheckedFunctions: '::aligned_alloc;::asctime_s;::at_quick_exit;::atexit;::bsearch;::bsearch_s;::btowc;::c16rtomb;::c32rtomb;::calloc;::clock;::cnd_broadcast;::cnd_init;::cnd_signal;::cnd_timedwait;::cnd_wait;::ctime_s;::fclose;::fflush;::fgetc;::fgetpos;::fgets;::fgetwc;::fopen;::fopen_s;::fprintf;::fprintf_s;::fputc;::fputs;::fputwc;::fputws;::fread;::freopen;::freopen_s;::fscanf;::fscanf_s;::fseek;::fsetpos;::ftell;::fwprintf;::fwprintf_s;::fwrite;::fwscanf;::fwscanf_s;::getc;::getchar;::getenv;::getenv_s;::gets_s;::getwc;::getwchar;::gmtime;::gmtime_s;::localtime;::localtime_s;::malloc;::mbrtoc16;::mbrtoc32;::mbsrtowcs;::mbsrtowcs_s;::mbstowcs;::mbstowcs_s;::memchr;::mktime;::mtx_init;::mtx_lock;::mtx_timedlock;::mtx_trylock;::mtx_unlock;::printf_s;::putc;::putwc;::raise;::realloc;::remove;::rename;::scanf;::scanf_s;::setlocale;::setvbuf;::signal;::snprintf;::snprintf_s;::sprintf;::sprintf_s;::sscanf;::sscanf_s;::strchr;::strerror_s;::strftime;::strpbrk;::strrchr;::strstr;::strtod;::strtof;::strtoimax;::strtok;::strtok_s;::strtol;::strtold;::strtoll;::strtoul;::strtoull;::strtoumax;::strxfrm;::swprintf;::swprintf_s;::swscanf;::swscanf_s;::thrd_create;::thrd_detach;::thrd_join;::thrd_sleep;::time;::timespec_get;::tmpfile;::tmpfile_s;::tmpnam;::tmpnam_s;::tss_create;::tss_get;::tss_set;::ungetc;::ungetwc;::vfprintf;::vfprintf_s;::vfscanf;::vfscanf_s;::vfwprintf;::vfwprintf_s;::vfwscanf;::vfwscanf_s;::vprintf_s;::vscanf;::vscanf_s;::vsnprintf;::vsnprintf_s;::vsprintf;::vsprintf_s;::vsscanf;::vsscanf_s;::vswprintf;::vswprintf_s;::vswscanf;::vswscanf_s;::vwprintf_s;::vwscanf;::vwscanf_s;::wcrtomb;::wcschr;::wcsftime;::wcspbrk;::wcsrchr;::wcsrtombs;::wcsrtombs_s;::wcsstr;::wcstod;::wcstof;::wcstoimax;::wcstok;::wcstok_s;::wcstol;::wcstold;::wcstoll;::wcstombs;::wcstombs_s;::wcstoul;::wcstoull;::wcstoumax;::wcsxfrm;::wctob;::wctrans;::wctype;::wmemchr;::wprintf_s;::wscanf;::wscanf_s;'
32-
performance-inefficient-string-concatenation.StrictMode: 'false'
33-
google-readability-braces-around-statements.ShortStatementLines: '1'
34-
modernize-use-nullptr.NullMacros: 'NULL'
35-
performance-inefficient-vector-operation.VectorLikeClasses: '::std::vector'
36-
performance-unnecessary-copy-initialization.AllowedTypes: ''
31+
cert-err33-c.CheckedFunctions: "::aligned_alloc;::asctime_s;::at_quick_exit;::atexit;::bsearch;::bsearch_s;::btowc;::c16rtomb;::c32rtomb;::calloc;::clock;::cnd_broadcast;::cnd_init;::cnd_signal;::cnd_timedwait;::cnd_wait;::ctime_s;::fclose;::fflush;::fgetc;::fgetpos;::fgets;::fgetwc;::fopen;::fopen_s;::fprintf;::fprintf_s;::fputc;::fputs;::fputwc;::fputws;::fread;::freopen;::freopen_s;::fscanf;::fscanf_s;::fseek;::fsetpos;::ftell;::fwprintf;::fwprintf_s;::fwrite;::fwscanf;::fwscanf_s;::getc;::getchar;::getenv;::getenv_s;::gets_s;::getwc;::getwchar;::gmtime;::gmtime_s;::localtime;::localtime_s;::malloc;::mbrtoc16;::mbrtoc32;::mbsrtowcs;::mbsrtowcs_s;::mbstowcs;::mbstowcs_s;::memchr;::mktime;::mtx_init;::mtx_lock;::mtx_timedlock;::mtx_trylock;::mtx_unlock;::printf_s;::putc;::putwc;::raise;::realloc;::remove;::rename;::scanf;::scanf_s;::setlocale;::setvbuf;::signal;::snprintf;::snprintf_s;::sprintf;::sprintf_s;::sscanf;::sscanf_s;::strchr;::strerror_s;::strftime;::strpbrk;::strrchr;::strstr;::strtod;::strtof;::strtoimax;::strtok;::strtok_s;::strtol;::strtold;::strtoll;::strtoul;::strtoull;::strtoumax;::strxfrm;::swprintf;::swprintf_s;::swscanf;::swscanf_s;::thrd_create;::thrd_detach;::thrd_join;::thrd_sleep;::time;::timespec_get;::tmpfile;::tmpfile_s;::tmpnam;::tmpnam_s;::tss_create;::tss_get;::tss_set;::ungetc;::ungetwc;::vfprintf;::vfprintf_s;::vfscanf;::vfscanf_s;::vfwprintf;::vfwprintf_s;::vfwscanf;::vfwscanf_s;::vprintf_s;::vscanf;::vscanf_s;::vsnprintf;::vsnprintf_s;::vsprintf;::vsprintf_s;::vsscanf;::vsscanf_s;::vswprintf;::vswprintf_s;::vswscanf;::vswscanf_s;::vwprintf_s;::vwscanf;::vwscanf_s;::wcrtomb;::wcschr;::wcsftime;::wcspbrk;::wcsrchr;::wcsrtombs;::wcsrtombs_s;::wcsstr;::wcstod;::wcstof;::wcstoimax;::wcstok;::wcstok_s;::wcstol;::wcstold;::wcstoll;::wcstombs;::wcstombs_s;::wcstoul;::wcstoull;::wcstoumax;::wcsxfrm;::wctob;::wctrans;::wctype;::wmemchr;::wprintf_s;::wscanf;::wscanf_s;"
32+
performance-inefficient-string-concatenation.StrictMode: "false"
33+
google-readability-braces-around-statements.ShortStatementLines: "1"
34+
modernize-use-nullptr.NullMacros: "NULL"
35+
performance-inefficient-vector-operation.VectorLikeClasses: "::std::vector"
36+
performance-unnecessary-copy-initialization.AllowedTypes: ""
3737
performance-unnecessary-value-param.IncludeStyle: llvm
38-
performance-move-const-arg.CheckMoveToConstRef: 'true'
39-
llvm-else-after-return.WarnOnUnfixable: 'false'
38+
performance-move-const-arg.CheckMoveToConstRef: "true"
39+
llvm-else-after-return.WarnOnUnfixable: "false"
File renamed without changes.

.github/ISSUE_TEMPLATE/bug.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
**Bug report**: **Title**
2+
3+
**Describe the bug**
4+
A clear and concise description of what the bug is.
5+
6+
**To Reproduce**
7+
Steps to reproduce the behavior:
8+
9+
1. Go to '...'
10+
2. Click on '....'
11+
3. Scroll down to '....'
12+
4. See error
13+
14+
**Historical Documents**
15+
When applicable please include any supporting artifacts: build and test logs, configurations ...
16+
17+
**Expected behavior**
18+
A clear and concise description of what you expected to happen.
19+
20+
**Screenshots**
21+
If applicable, add screenshots to help explain your problem.
22+
23+
**Versions (please complete the following information):**
24+
25+
- OS: [e.g. OSX]
26+
- OpenCL: [e.g. 1.11.0]
27+
- HiCR: [e.g. 0.1.0]
28+
29+
**Additional context**
30+
Add any other context about the problem here.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
**Feature request**: **Title**
2+
3+
**Is your feature request related to a problem? Please describe.**
4+
A clear and concise description of what the problem is. Link any relevant issues.
5+
6+
**Describe the solution you'd like**
7+
A clear and concise description of what you want to happen.
8+
9+
**Describe alternatives you've considered**
10+
A clear and concise description of any alternative solutions or features you've considered.
11+
12+
**Additional context**
13+
Add any other context or screenshots about the feature request here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
## Description
2+
3+
_Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request.
4+
If it fixes a bug or resolves a feature request, be sure to link to that issue._
5+
6+
## Type of change
7+
8+
_What type of changes does your code introduce to HiCR? Put an `x` in the box that apply._
9+
10+
- [ ] `CHANGE` (fix or feature that would cause existing functionality to not work as expected)
11+
- [ ] `FEATURE` (non-breaking change which adds functionality)
12+
- [ ] `BUGFIX` (non-breaking change which fixes an issue)
13+
- [ ] `ENHANCEMENT` (non-breaking change which improves existing functionality)
14+
- [ ] `NONE` (if none of the other choices apply. Example, tooling, build system, CI, docs, etc.)
15+
16+
## Verification
17+
<!-- How you tested it? How do you know it works? -->
18+
Please check the [testing guidelines](introduction/build.html#building-tests-and-examples) for recommendations about automated tests.
19+
20+
<!--
21+
## Changelog entry
22+
23+
_Please put a one-line changelog entry below. This will be copied to the changelog file during the release process._
24+
25+
<!--
26+
Your release note should be written in clear and straightforward sentences. Most often, users aren't familiar with
27+
the technical details of your PR, so consider what they need to know when you write your release note.
28+
29+
Some brief examples of release notes:
30+
- Add metadataConfig field to the Prometheus CRD for configuring how remote-write sends metadata information.
31+
- Generate correct scraping configuration for Probes with empty or unset module parameter.
32+
-->
33+
<!--
34+
```release-note
35+
36+
``` -->

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ build:
1212
- source /home/hicr/.hicr-env.sh
1313
- echo "Building..."
1414
- mkdir build
15-
- meson setup build -Dbuildtype=debug -Db_coverage=true -Dbackends=hwloc,pthreads,mpi,lpf,nosv,boost,opencl -Dfrontends=channel,RPCEngine,tasking,objectStore -DbuildTests=true -DbuildExamples=true -DcompileWarningsAsErrors=true
15+
- meson setup build -Dbuildtype=debug -Db_coverage=true -Dbackends=hwloc,pthreads,mpi,lpf,nosv,boost,opencl -Dfrontends=channel,RPCEngine,tasking,objectStore -DbuildTests=true -DbuildExamples=true -DcompileWarningsAsErrors=true
1616
- meson compile -C build
1717
- echo "Running tests..."
1818
- meson test -C build

.jenkins/jenkins.sh

Lines changed: 0 additions & 44 deletions
This file was deleted.

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import subprocess as sp
1919

2020
# -- Project information -----------------------------------------------------
21-
project = 'HiSilicon Common Runtime (HiCR)'
21+
project = 'HiCR'
2222
copyright = 'Huawei Technologies Switzerland AG'
2323
author = 'Sergio Martin'
2424

0 commit comments

Comments
 (0)