forked from amd/vaip
-
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.
- Loading branch information
Showing
1,275 changed files
with
1,395,323 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
--- | ||
Language: Cpp | ||
# BasedOnStyle: LLVM | ||
AccessModifierOffset: -2 | ||
AlignAfterOpenBracket: Align | ||
AlignConsecutiveMacros: false | ||
AlignConsecutiveAssignments: false | ||
AlignConsecutiveDeclarations: false | ||
AlignEscapedNewlines: Right | ||
AlignOperands: true | ||
AlignTrailingComments: true | ||
AllowAllArgumentsOnNextLine: true | ||
AllowAllConstructorInitializersOnNextLine: true | ||
AllowAllParametersOfDeclarationOnNextLine: true | ||
AllowShortBlocksOnASingleLine: Never | ||
AllowShortCaseLabelsOnASingleLine: false | ||
AllowShortFunctionsOnASingleLine: All | ||
AllowShortLambdasOnASingleLine: All | ||
AllowShortIfStatementsOnASingleLine: Never | ||
AllowShortLoopsOnASingleLine: false | ||
AlwaysBreakAfterDefinitionReturnType: None | ||
AlwaysBreakAfterReturnType: None | ||
AlwaysBreakBeforeMultilineStrings: false | ||
AlwaysBreakTemplateDeclarations: MultiLine | ||
BinPackArguments: true | ||
BinPackParameters: true | ||
BraceWrapping: | ||
AfterCaseLabel: false | ||
AfterClass: false | ||
AfterControlStatement: false | ||
AfterEnum: false | ||
AfterFunction: false | ||
AfterNamespace: false | ||
AfterObjCDeclaration: false | ||
AfterStruct: false | ||
AfterUnion: false | ||
AfterExternBlock: false | ||
BeforeCatch: false | ||
BeforeElse: false | ||
IndentBraces: false | ||
SplitEmptyFunction: true | ||
SplitEmptyRecord: true | ||
SplitEmptyNamespace: true | ||
BreakBeforeBinaryOperators: None | ||
BreakBeforeBraces: Attach | ||
BreakBeforeInheritanceComma: false | ||
BreakInheritanceList: BeforeColon | ||
BreakBeforeTernaryOperators: true | ||
BreakConstructorInitializersBeforeComma: false | ||
BreakConstructorInitializers: BeforeColon | ||
BreakAfterJavaFieldAnnotations: false | ||
BreakStringLiterals: true | ||
ColumnLimit: 80 | ||
CommentPragmas: '^ IWYU pragma:' | ||
CompactNamespaces: false | ||
ConstructorInitializerAllOnOneLineOrOnePerLine: false | ||
ConstructorInitializerIndentWidth: 4 | ||
ContinuationIndentWidth: 4 | ||
Cpp11BracedListStyle: true | ||
DeriveLineEnding: true | ||
DerivePointerAlignment: false | ||
DisableFormat: false | ||
ExperimentalAutoDetectBinPacking: false | ||
FixNamespaceComments: true | ||
ForEachMacros: | ||
- foreach | ||
- Q_FOREACH | ||
- BOOST_FOREACH | ||
IncludeBlocks: Preserve | ||
IncludeCategories: | ||
- Regex: '^"(llvm|llvm-c|clang|clang-c)/' | ||
Priority: 2 | ||
SortPriority: 0 | ||
- Regex: '^(<|"(gtest|gmock|isl|json)/)' | ||
Priority: 3 | ||
SortPriority: 0 | ||
- Regex: '.*' | ||
Priority: 1 | ||
SortPriority: 0 | ||
IncludeIsMainRegex: '(Test)?$' | ||
IncludeIsMainSourceRegex: '' | ||
IndentCaseLabels: false | ||
IndentGotoLabels: true | ||
IndentWidth: 2 | ||
IndentPPDirectives: AfterHash | ||
IndentWrappedFunctionNames: false | ||
JavaScriptQuotes: Leave | ||
JavaScriptWrapImports: true | ||
KeepEmptyLinesAtTheStartOfBlocks: true | ||
MacroBlockBegin: '' | ||
MacroBlockEnd: '' | ||
MaxEmptyLinesToKeep: 1 | ||
NamespaceIndentation: None | ||
ObjCBinPackProtocolList: Auto | ||
ObjCBlockIndentWidth: 2 | ||
ObjCSpaceAfterProperty: false | ||
ObjCSpaceBeforeProtocolList: true | ||
PenaltyBreakAssignment: 2 | ||
PenaltyBreakBeforeFirstCallParameter: 19 | ||
PenaltyBreakComment: 300 | ||
PenaltyBreakFirstLessLess: 120 | ||
PenaltyBreakString: 1000 | ||
PenaltyBreakTemplateDeclaration: 10 | ||
PenaltyExcessCharacter: 1000000 | ||
PenaltyReturnTypeOnItsOwnLine: 60 | ||
PointerAlignment: Left | ||
ReflowComments: true | ||
SortIncludes: true | ||
SortUsingDeclarations: true | ||
SpaceAfterCStyleCast: false | ||
SpaceAfterLogicalNot: false | ||
SpaceAfterTemplateKeyword: true | ||
SpaceBeforeAssignmentOperators: true | ||
SpaceBeforeCpp11BracedList: false | ||
SpaceBeforeCtorInitializerColon: true | ||
SpaceBeforeInheritanceColon: true | ||
SpaceBeforeParens: ControlStatements | ||
SpaceBeforeRangeBasedForLoopColon: true | ||
SpaceInEmptyBlock: false | ||
SpaceInEmptyParentheses: false | ||
SpacesBeforeTrailingComments: 1 | ||
SpacesInAngles: false | ||
SpacesInConditionalStatement: false | ||
SpacesInContainerLiterals: true | ||
SpacesInCStyleCastParentheses: false | ||
SpacesInParentheses: false | ||
SpacesInSquareBrackets: false | ||
SpaceBeforeSquareBrackets: false | ||
Standard: Latest | ||
StatementMacros: | ||
- Q_UNUSED | ||
- QT_REQUIRE_VERSION | ||
TabWidth: 8 | ||
UseCRLF: false | ||
UseTab: Never | ||
... |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ci/model_zoo.ref.json filter=lfs diff=lfs merge=lfs -text | ||
*.png filter=lfs diff=lfs merge=lfs -text |
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 |
---|---|---|
@@ -0,0 +1,126 @@ | ||
name: Notify Teams | ||
description: Sends a notification to Microsoft Teams with build status. | ||
|
||
inputs: | ||
overall-status: | ||
description: 'Overall status of the build (success or failure)' | ||
required: true | ||
run-url: | ||
description: 'URL to the GitHub Actions run' | ||
required: true | ||
action-name: | ||
description: 'Name of the job or action' | ||
required: true | ||
workflow-status: | ||
description: 'Status of the workflow' | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Send Notification | ||
shell: bash | ||
run: | | ||
WEBHOOK_URL="https://amdcloud.webhook.office.com/webhookb2/133d4f16-689b-4281-a94b-44725b948c77@3dd8961f-e488-4e60-8e11-a82d994e183d/IncomingWebhook/4dad5927e4bf444fa82e7c6c59307bee/f9e22351-f1c9-494f-88c5-8e04accf2ffe" | ||
if [[ "${{ inputs.overall-status }}" == "failure" ]]; then | ||
curl -H 'Content-Type: application/json' \ | ||
-d '{ | ||
"type": "message", | ||
"attachments": [ | ||
{ | ||
"contentType": "application/vnd.microsoft.card.adaptive", | ||
"content": { | ||
"type": "AdaptiveCard", | ||
"version": "1.2", | ||
"body": [ | ||
{ | ||
"type": "TextBlock", | ||
"size": "Large", | ||
"weight": "Bolder", | ||
"text": "<at>jennyang</at>" | ||
}, | ||
{ | ||
"type": "TextBlock", | ||
"text": "**Job Name:** '"${{ inputs.action-name }}"'", | ||
"color": "Attention" | ||
}, | ||
{ | ||
"type": "TextBlock", | ||
"text": "**Workflow Status:** '"${{ inputs.workflow-status }}"'", | ||
"color": "Attention" | ||
}, | ||
{ | ||
"type": "TextBlock", | ||
"text": "The build and test failed. Please check the logs.", | ||
"color": "Attention" | ||
} | ||
], | ||
"msteams": { | ||
"width": "Full", | ||
"entities": [ | ||
{ | ||
"type": "mention", | ||
"text": "<at>jennyang</at>", | ||
"mentioned": { | ||
"id": "[email protected]", | ||
"name": "Yang, Jennifer" | ||
} | ||
} | ||
] | ||
}, | ||
"actions": [ | ||
{ | ||
"type": "Action.OpenUrl", | ||
"title": "View Run", | ||
"url": "'"${{ inputs.run-url }}"'" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
}' \ | ||
"$WEBHOOK_URL" | ||
else | ||
curl -H 'Content-Type: application/json' \ | ||
-d '{ | ||
"type": "message", | ||
"attachments": [ | ||
{ | ||
"contentType": "application/vnd.microsoft.card.adaptive", | ||
"content": { | ||
"type": "AdaptiveCard", | ||
"version": "1.2", | ||
"body": [ | ||
{ | ||
"type": "TextBlock", | ||
"text": "**Job Name:** '"${{ inputs.action-name }}"'", | ||
"color": "Good" | ||
}, | ||
{ | ||
"type": "TextBlock", | ||
"text": "**Workflow Status:** '"${{ inputs.workflow-status }}"'", | ||
"color": "Good" | ||
}, | ||
{ | ||
"type": "TextBlock", | ||
"text": "The build and test completed successfully.", | ||
"color": "Good" | ||
} | ||
], | ||
"msteams": { | ||
"width": "Full" | ||
}, | ||
"actions": [ | ||
{ | ||
"type": "Action.OpenUrl", | ||
"title": "View Run", | ||
"url": "'"${{ inputs.run-url }}"'" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
}' \ | ||
"$WEBHOOK_URL" | ||
fi |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#a9dc4454399317a931f2e517218244b34c983c2d:latest_dev.txt | ||
boost: v1.79.0 | ||
glog: v0.6.0 | ||
gsl: v4.0.0 | ||
protobuf: v3.21.1 | ||
eigen: d10b27fe37736d2944630ecd7557cefa95cf87c9 | ||
pybind11: v2.10.0 | ||
opencv: 4.6.0 | ||
zlib: v1.2.13 | ||
spdlog: v1.x | ||
json: v3.11.2 | ||
gtest: release-1.12.1 | ||
tvm_aie_compiler_artifact: tvm-1734 | ||
transformers_header: 6d5d34fa36f6ec39b7d1e5404a9ca5fada69a525 | ||
unilog: b7f12a1b72ed30ecefea6c5a57afccfd83132dcf | ||
xir: b65d8fbdc38b4b3e20ff4b9b7dc49f756408977f | ||
target_factory: f17c3eeddd5118558a6723d0edc6ee797902c493 | ||
trace_logging: b4d5060dd3635409f1e79fac8ec9e6c0e8a09e7f | ||
vart: 91eaf7427083d9f0e72acbdd606d7cf077e4dda8 | ||
xcompiler: 08a07ebcd5c01d4da5b244edb3cf1e7bd982e723 | ||
graph-engine: 81dff15f176782c7fa7079e04e9e6545a7146df5 | ||
vairt: 0ab90426123629c3031e579f193e648d5822a0e6 | ||
testcases: 2d3e810769fc1840d637a9e17710c274748390cd | ||
onnxruntime: v1.15.1 | ||
openssl: openssl-3.1.2 | ||
vaip: a6910de3f131ea55686d598594ae55825e8a3941 | ||
test_onnx_runner: 2c82b2bfc9c37c61c1199fb722771d5a9a0c6b72 |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Lint | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.head_ref }}.lint | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
lint: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ lint-machine-new ] | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Run lintrunner on all files | ||
run: | | ||
docker run --rm -v /proj/xbuilds:/proj/xbuilds -v /tools:/tools \ | ||
-v ${{ github.workspace }}:${{ github.workspace }} -w ${{ github.workspace }} -u z1aiebuild --network=host -e USER=z1aiebuild -e UID=95777 -e GRP=hd \ | ||
-v /home/z1aiebuild/.ssh:/home/z1aiebuild/.ssh -e GID=10115 --security-opt seccomp=unconfined \ | ||
xcoartifactory.xilinx.com/vitis-ai-docker-dev-local/voe-dev-build:003 /bin/bash -c \ | ||
" python -m pip install lintrunner lintrunner-adapters>=0.8.0 --force-reinstall | ||
python -m pip install -r requirements-lintrunner.txt --force-reinstall | ||
export PATH=/home/z1aiebuild/.local/bin:$PATH | ||
lintrunner init | ||
lintrunner -v --force-color --all-files | ||
" |
Oops, something went wrong.