Skip to content

Commit 1ed169e

Browse files
Evgenyammarwa
authored andcommitted
Initial Commit
Contributors: Ammar ELWazir <aelwazir@amd.com> AravindanC <aravindan.cheruvally@amd.com> Benjamin Welton <bewelton@amd.com> Ma, Bing <Bing.Ma@amd.com> Chun Yang <chun.yang@amd.com> Cole Nelson <cole.nelson@amd.com> Ethan Stewart <ethan.stewart@amd.com> Evgeny <evgeny.shcherbakov@amd.com> Freddy Paul <Freddy.paul@amd.com> Giovanni Baraldi <gbaraldi@amd.com> Gopesh Bhardwaj <Gopesh.Bhardwaj@amd.com> Icarus Sparry <icarus.sparry@amd.com> itrowbri <Ian.Trowbridge@amd.com> James Edwards <JamesAdrian.Edwards@amd.com> jatang <jatang@amd.com> Jeremy Newton <Jeremy.Newton@amd.com> Jonathan Kim <jonathan.kim@amd.com> Kent Russell <kent.russell@amd.com> Kiumars Sabeti <kiumars.sabeti@amd.com> Lang Yu <lang.yu@amd.com> Laurent Morichetti <laurent.morichetti@amd.com> Mallya, Ameya Keshava <AmeyaKeshava.Mallya@amd.com> Manjunath Jakaraddi <manjunath.jakaraddi@amd.com> Mark Laws <markdavid.laws@amd.com> Mohan Kumar Mithur <Mohan.KumarMithur@amd.com> Nicholas Curtis <nicurtis@amd.com> Nirmal Unnikrishnan <Nirmal.Unnikrishnan@amd.com> Parag Bhandari <parag.bhandari@amd.com> Ranjith Ramakrishnan <Ranjith.Ramakrishnan@amd.com> Robert Gregory <Robert.Gregory@amd.com> Saravanan Solaiyappan <saravanan.solaiyappan@amd.com> Saurabh Verma <saurabh.verma@amd.com> Srihari Uttanur <srihari.u@amd.com> Srinivasan Subramanian <srinivasan.subramanian@amd.com> Sriraksha Nagaraj <Sriraksha.Nagaraj@amd.com> Sushma Vaddireddy <svaddire@amd.com> Xianwei Zhang <Xianwei.Zhang@amd.com>
1 parent 7c7d7b4 commit 1ed169e

File tree

157 files changed

+371830
-0
lines changed

Some content is hidden

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

157 files changed

+371830
-0
lines changed

.clang-format

Lines changed: 205 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,205 @@
1+
---
2+
Language: Cpp
3+
# BasedOnStyle: Google
4+
AccessModifierOffset: -1
5+
AlignAfterOpenBracket: Align
6+
AlignConsecutiveMacros: None
7+
AlignConsecutiveAssignments: None
8+
AlignConsecutiveBitFields: None
9+
AlignConsecutiveDeclarations: None
10+
AlignEscapedNewlines: Left
11+
AlignOperands: Align
12+
AlignTrailingComments: true
13+
AllowAllArgumentsOnNextLine: true
14+
AllowAllConstructorInitializersOnNextLine: true
15+
AllowAllParametersOfDeclarationOnNextLine: true
16+
AllowShortEnumsOnASingleLine: true
17+
AllowShortBlocksOnASingleLine: Never
18+
AllowShortCaseLabelsOnASingleLine: false
19+
AllowShortFunctionsOnASingleLine: All
20+
AllowShortLambdasOnASingleLine: All
21+
AllowShortIfStatementsOnASingleLine: WithoutElse
22+
AllowShortLoopsOnASingleLine: true
23+
AlwaysBreakAfterDefinitionReturnType: None
24+
AlwaysBreakAfterReturnType: None
25+
AlwaysBreakBeforeMultilineStrings: true
26+
AlwaysBreakTemplateDeclarations: Yes
27+
AttributeMacros:
28+
- __capability
29+
BinPackArguments: true
30+
BinPackParameters: true
31+
BraceWrapping:
32+
AfterCaseLabel: false
33+
AfterClass: false
34+
AfterControlStatement: Never
35+
AfterEnum: false
36+
AfterFunction: false
37+
AfterNamespace: false
38+
AfterObjCDeclaration: false
39+
AfterStruct: false
40+
AfterUnion: false
41+
AfterExternBlock: false
42+
BeforeCatch: false
43+
BeforeElse: false
44+
BeforeLambdaBody: false
45+
BeforeWhile: false
46+
IndentBraces: false
47+
SplitEmptyFunction: true
48+
SplitEmptyRecord: true
49+
SplitEmptyNamespace: true
50+
BreakBeforeBinaryOperators: None
51+
BreakBeforeConceptDeclarations: true
52+
BreakBeforeBraces: Attach
53+
BreakBeforeInheritanceComma: false
54+
BreakInheritanceList: BeforeColon
55+
BreakBeforeTernaryOperators: true
56+
BreakConstructorInitializersBeforeComma: false
57+
BreakConstructorInitializers: BeforeColon
58+
BreakAfterJavaFieldAnnotations: false
59+
BreakStringLiterals: true
60+
ColumnLimit: 100
61+
CommentPragmas: '^ IWYU pragma:'
62+
CompactNamespaces: false
63+
ConstructorInitializerAllOnOneLineOrOnePerLine: true
64+
ConstructorInitializerIndentWidth: 4
65+
ContinuationIndentWidth: 4
66+
Cpp11BracedListStyle: true
67+
DeriveLineEnding: true
68+
DerivePointerAlignment: true
69+
DisableFormat: false
70+
EmptyLineBeforeAccessModifier: LogicalBlock
71+
ExperimentalAutoDetectBinPacking: false
72+
FixNamespaceComments: true
73+
ForEachMacros:
74+
- foreach
75+
- Q_FOREACH
76+
- BOOST_FOREACH
77+
StatementAttributeLikeMacros:
78+
- Q_EMIT
79+
IncludeBlocks: Regroup
80+
IncludeCategories:
81+
- Regex: '^<ext/.*\.h>'
82+
Priority: 2
83+
SortPriority: 0
84+
CaseSensitive: false
85+
- Regex: '^<.*\.h>'
86+
Priority: 1
87+
SortPriority: 0
88+
CaseSensitive: false
89+
- Regex: '^<.*'
90+
Priority: 2
91+
SortPriority: 0
92+
CaseSensitive: false
93+
- Regex: '.*'
94+
Priority: 3
95+
SortPriority: 0
96+
CaseSensitive: false
97+
IncludeIsMainRegex: '([-_](test|unittest))?$'
98+
IncludeIsMainSourceRegex: ''
99+
IndentAccessModifiers: false
100+
IndentCaseLabels: true
101+
IndentCaseBlocks: false
102+
IndentGotoLabels: true
103+
IndentPPDirectives: None
104+
IndentExternBlock: AfterExternBlock
105+
IndentRequires: false
106+
IndentWidth: 2
107+
IndentWrappedFunctionNames: false
108+
InsertTrailingCommas: None
109+
JavaScriptQuotes: Leave
110+
JavaScriptWrapImports: true
111+
KeepEmptyLinesAtTheStartOfBlocks: false
112+
MacroBlockBegin: ''
113+
MacroBlockEnd: ''
114+
MaxEmptyLinesToKeep: 1
115+
NamespaceIndentation: None
116+
ObjCBinPackProtocolList: Never
117+
ObjCBlockIndentWidth: 2
118+
ObjCBreakBeforeNestedBlockParam: true
119+
ObjCSpaceAfterProperty: false
120+
ObjCSpaceBeforeProtocolList: true
121+
PenaltyBreakAssignment: 2
122+
PenaltyBreakBeforeFirstCallParameter: 1
123+
PenaltyBreakComment: 300
124+
PenaltyBreakFirstLessLess: 120
125+
PenaltyBreakString: 1000
126+
PenaltyBreakTemplateDeclaration: 10
127+
PenaltyExcessCharacter: 1000000
128+
PenaltyReturnTypeOnItsOwnLine: 200
129+
PenaltyIndentedWhitespace: 0
130+
PointerAlignment: Left
131+
RawStringFormats:
132+
- Language: Cpp
133+
Delimiters:
134+
- cc
135+
- CC
136+
- cpp
137+
- Cpp
138+
- CPP
139+
- 'c++'
140+
- 'C++'
141+
CanonicalDelimiter: ''
142+
BasedOnStyle: google
143+
- Language: TextProto
144+
Delimiters:
145+
- pb
146+
- PB
147+
- proto
148+
- PROTO
149+
EnclosingFunctions:
150+
- EqualsProto
151+
- EquivToProto
152+
- PARSE_PARTIAL_TEXT_PROTO
153+
- PARSE_TEST_PROTO
154+
- PARSE_TEXT_PROTO
155+
- ParseTextOrDie
156+
- ParseTextProtoOrDie
157+
- ParseTestProto
158+
- ParsePartialTestProto
159+
CanonicalDelimiter: pb
160+
BasedOnStyle: google
161+
ReflowComments: true
162+
ShortNamespaceLines: 1
163+
SortIncludes: false
164+
SortJavaStaticImport: Before
165+
SortUsingDeclarations: true
166+
SpaceAfterCStyleCast: false
167+
SpaceAfterLogicalNot: false
168+
SpaceAfterTemplateKeyword: true
169+
SpaceBeforeAssignmentOperators: true
170+
SpaceBeforeCaseColon: false
171+
SpaceBeforeCpp11BracedList: false
172+
SpaceBeforeCtorInitializerColon: true
173+
SpaceBeforeInheritanceColon: true
174+
SpaceBeforeParens: ControlStatements
175+
SpaceAroundPointerQualifiers: Default
176+
SpaceBeforeRangeBasedForLoopColon: true
177+
SpaceInEmptyBlock: false
178+
SpaceInEmptyParentheses: false
179+
SpacesBeforeTrailingComments: 2
180+
SpacesInAngles: false
181+
SpacesInConditionalStatement: false
182+
SpacesInContainerLiterals: true
183+
SpacesInCStyleCastParentheses: false
184+
SpacesInLineCommentPrefix:
185+
Minimum: 1
186+
Maximum: -1
187+
SpacesInParentheses: false
188+
SpacesInSquareBrackets: false
189+
SpaceBeforeSquareBrackets: false
190+
BitFieldColonSpacing: Both
191+
Standard: Auto
192+
StatementMacros:
193+
- Q_UNUSED
194+
- QT_REQUIRE_VERSION
195+
TabWidth: 8
196+
UseCRLF: false
197+
UseTab: Never
198+
WhitespaceSensitiveMacros:
199+
- STRINGIZE
200+
- PP_STRINGIZE
201+
- BOOST_PP_STRINGIZE
202+
- NS_SWIFT_NAME
203+
- CF_SWIFT_NAME
204+
...
205+

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions" # See documentation for possible values
4+
directory: "/" # Location of package manifests
5+
schedule:
6+
interval: "weekly"
7+
- package-ecosystem: "pip" # See documentation for possible values
8+
directory: "/docs/sphinx" # Location of package manifests
9+
open-pull-requests-limit: 10
10+
schedule:
11+
interval: "daily"
12+
versioning-strategy: increase
13+

.github/palamida.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
disabled: false
2+
scmId: gh-emu-rocm
3+
branchesToScan:
4+
- amd-staging
5+
- amd-mainline

.github/workflows/codeql.yml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
name: "CodeQL Advanced"
2+
3+
on:
4+
push:
5+
branches: [ "amd-staging" ]
6+
pull_request:
7+
branches: [ "amd-staging" ]
8+
schedule:
9+
- cron: '0 0 * * *'
10+
11+
env:
12+
EXCLUDED_PATHS: ""
13+
14+
jobs:
15+
analyze:
16+
name: Analyze (${{ matrix.language }})
17+
# Runner size impacts CodeQL analysis time. To learn more, please see:
18+
# - https://gh.io/recommended-hardware-resources-for-running-codeql
19+
# - https://gh.io/supported-runners-and-hardware-resources
20+
# - https://gh.io/using-larger-runners (GitHub.com only)
21+
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
22+
runs-on: gpuless-emu-runner-set
23+
permissions:
24+
# required for all workflows
25+
security-events: write
26+
27+
# required to fetch internal or private CodeQL packs
28+
packages: read
29+
30+
# only required for workflows in private repositories
31+
actions: read
32+
contents: read
33+
34+
strategy:
35+
fail-fast: false
36+
matrix:
37+
include:
38+
- language: c-cpp
39+
build-mode: manual
40+
- language: python
41+
build-mode: none
42+
- language: actions
43+
build-mode: none
44+
45+
steps:
46+
- name: Checkout repository
47+
uses: actions/checkout@v4
48+
49+
- if: matrix.build-mode == 'manual'
50+
name: Install requirements
51+
timeout-minutes: 10
52+
shell: bash
53+
run: |
54+
git config --global --add safe.directory '*'
55+
apt-get update
56+
apt-get install -y build-essential cmake g++-11 g++-12 python3-pip libdw-dev rocm-llvm-dev
57+
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 10 --slave /usr/bin/g++ g++ /usr/bin/g++-11 --slave /usr/bin/gcov gcov /usr/bin/gcov-11
58+
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 20 --slave /usr/bin/g++ g++ /usr/bin/g++-12 --slave /usr/bin/gcov gcov /usr/bin/gcov-12
59+
60+
# Initializes the CodeQL tools for scanning.
61+
- name: Initialize CodeQL
62+
uses: github/codeql-action/init@v3
63+
with:
64+
languages: ${{ matrix.language }}
65+
build-mode: ${{ matrix.build-mode }}
66+
queries: security-extended
67+
# If you wish to specify custom queries, you can do so here or in a config file.
68+
# By default, queries listed here will override any specified in a config file.
69+
# Prefix the list here with "+" to use these queries and those in the config file.
70+
71+
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
72+
# queries: security-extended,security-and-quality
73+
74+
# If the analyze step fails for one of the languages you are analyzing with
75+
# "We were unable to automatically build your code", modify the matrix above
76+
# to set the build mode to "manual" for that language. Then modify this step
77+
# to build your code.
78+
# ℹ️ Command-line programs to run using the OS shell.
79+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
80+
- if: matrix.build-mode == 'manual'
81+
name: Configure and Build
82+
timeout-minutes: 30
83+
shell: bash
84+
run: |
85+
cmake -B /tmp/build -DGPU_TARGETS='gfx906,gfx90a,gfx942,gfx1101,gfx1201' -DCMAKE_PREFIX_PATH=/opt/rocm
86+
cmake --build /tmp/build --target all --parallel 16
87+
88+
- name: Perform CodeQL Analysis
89+
uses: github/codeql-action/analyze@v3
90+
with:
91+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)