forked from ROCm/ROCm
-
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.
Merge branch 'develop' into roc-6.3.x
- Loading branch information
Showing
55 changed files
with
1,892 additions
and
2,132 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
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
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,166 @@ | ||
parameters: | ||
- name: checkoutRepo | ||
type: string | ||
default: 'self' | ||
- name: checkoutRef | ||
type: string | ||
default: '' | ||
- name: aptPackages | ||
type: object | ||
default: | ||
- cmake | ||
- python3-pip | ||
- name: pipModules | ||
type: object | ||
default: | ||
- astunparse==1.6.2 | ||
- colorlover | ||
- dash>=1.12.0 | ||
- matplotlib | ||
- numpy>=1.17.5 | ||
- pandas>=1.4.3 | ||
- pymongo | ||
- pyyaml | ||
- tabulate | ||
- tqdm | ||
- dash-svg | ||
- dash-bootstrap-components | ||
- kaleido | ||
- setuptools | ||
- plotille | ||
- mock | ||
- pytest | ||
- pytest-cov | ||
- pytest-xdist | ||
- name: rocmDependencies | ||
type: object | ||
default: | ||
- clr | ||
- llvm-project | ||
- rocm-cmake | ||
- rocm-core | ||
- rocminfo | ||
- ROCR-Runtime | ||
- rocprofiler | ||
- rocprofiler-register | ||
- roctracer | ||
|
||
jobs: | ||
- job: omniperf | ||
variables: | ||
- group: common | ||
- template: /.azuredevops/variables-global.yml | ||
pool: | ||
vmImage: ${{ variables.BASE_BUILD_POOL }} | ||
workspace: | ||
clean: all | ||
strategy: | ||
matrix: | ||
gfx942: | ||
JOB_GPU_TARGET: gfx942 | ||
steps: | ||
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/dependencies-other.yml | ||
parameters: | ||
aptPackages: ${{ parameters.aptPackages }} | ||
pipModules: ${{ parameters.pipModules }} | ||
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/preamble.yml | ||
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/checkout.yml | ||
parameters: | ||
checkoutRepo: ${{ parameters.checkoutRepo }} | ||
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/dependencies-aqlprofile.yml | ||
parameters: | ||
${{ if eq(parameters.checkoutRef, '') }}: | ||
dependencySource: staging | ||
${{ elseif ne(parameters.checkoutRef, '') }}: | ||
dependencySource: tag-builds | ||
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/dependencies-rocm.yml | ||
parameters: | ||
dependencyList: ${{ parameters.rocmDependencies }} | ||
gpuTarget: $(JOB_GPU_TARGET) | ||
# CI case: download latest default branch build | ||
${{ if eq(parameters.checkoutRef, '') }}: | ||
dependencySource: staging | ||
# manual build case: triggered by ROCm/ROCm repo | ||
${{ elseif ne(parameters.checkoutRef, '') }}: | ||
dependencySource: tag-builds | ||
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/build-cmake.yml | ||
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/artifact-upload.yml | ||
parameters: | ||
gpuTarget: $(JOB_GPU_TARGET) | ||
|
||
- job: omniperf_testing | ||
dependsOn: omniperf | ||
condition: and(succeeded(), eq(variables.ENABLE_GFX942_TESTS, 'true'), not(containsValue(split(variables.DISABLED_GFX942_TESTS, ','), variables['Build.DefinitionName']))) | ||
variables: | ||
- group: common | ||
- template: /.azuredevops/variables-global.yml | ||
- name: PYTHON_VERSION | ||
value: 3.10 | ||
pool: $(JOB_TEST_POOL) | ||
workspace: | ||
clean: all | ||
strategy: | ||
matrix: | ||
gfx942: | ||
JOB_GPU_TARGET: gfx942 | ||
JOB_TEST_POOL: ${{ variables.GFX942_TEST_POOL }} | ||
steps: | ||
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/dependencies-other.yml | ||
parameters: | ||
aptPackages: ${{ parameters.aptPackages }} | ||
pipModules: ${{ parameters.pipModules }} | ||
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/preamble.yml | ||
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/checkout.yml | ||
parameters: | ||
checkoutRepo: ${{ parameters.checkoutRepo }} | ||
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/local-artifact-download.yml | ||
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/dependencies-aqlprofile.yml | ||
parameters: | ||
${{ if eq(parameters.checkoutRef, '') }}: | ||
dependencySource: staging | ||
${{ elseif ne(parameters.checkoutRef, '') }}: | ||
dependencySource: tag-builds | ||
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/dependencies-rocm.yml | ||
parameters: | ||
dependencyList: ${{ parameters.rocmDependencies }} | ||
gpuTarget: $(JOB_GPU_TARGET) | ||
${{ if eq(parameters.checkoutRef, '') }}: | ||
dependencySource: staging | ||
${{ elseif ne(parameters.checkoutRef, '') }}: | ||
dependencySource: tag-builds | ||
- task: Bash@3 | ||
displayName: Add ROCm binaries to PATH | ||
inputs: | ||
targetType: inline | ||
script: echo "##vso[task.prependpath]$(Agent.BuildDirectory)/rocm/bin" | ||
- task: Bash@3 | ||
displayName: Add ROCm compilers to PATH | ||
inputs: | ||
targetType: inline | ||
script: echo "##vso[task.prependpath]$(Agent.BuildDirectory)/rocm/llvm/bin" | ||
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/build-cmake.yml | ||
parameters: | ||
extraBuildFlags: >- | ||
-DCMAKE_HIP_ARCHITECTURES=$(JOB_GPU_TARGET) | ||
-DCMAKE_C_COMPILER=$(Agent.BuildDirectory)/rocm/llvm/bin/amdclang | ||
-DCMAKE_MODULE_PATH=$(Agent.BuildDirectory)/rocm/lib/cmake/hip | ||
-DCMAKE_PREFIX_PATH=$(Agent.BuildDirectory)/rocm | ||
-DCMAKE_BUILD_TYPE=Release | ||
-DENABLE_TESTS=ON | ||
-DINSTALL_TESTS=ON | ||
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/gpu-diagnostics.yml | ||
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/test.yml | ||
parameters: | ||
componentName: omniperf | ||
testDir: $(Build.BinariesDirectory)/libexec/omniperf | ||
testExecutable: export OMNIPERF_ARCH_OVERRIDE="MI300X"; ctest | ||
- task: Bash@3 | ||
displayName: Remove ROCm binaries from PATH | ||
inputs: | ||
targetType: inline | ||
script: echo "##vso[task.setvariable variable=PATH]$(echo $PATH | sed -e 's;:$(Agent.BuildDirectory)/rocm/bin;;' -e 's;^/;;' -e 's;/$;;')" | ||
- task: Bash@3 | ||
displayName: Remove ROCm compilers from PATH | ||
inputs: | ||
targetType: inline | ||
script: echo "##vso[task.setvariable variable=PATH]$(echo $PATH | sed -e 's;:$(Agent.BuildDirectory)/rocm/llvm/bin;;' -e 's;^/;;' -e 's;/$;;')" |
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
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 |
---|---|---|
|
@@ -41,6 +41,7 @@ parameters: | |
- ROCR-Runtime | ||
- rocprofiler-register | ||
- roctracer | ||
- aomp | ||
|
||
jobs: | ||
- job: rocprofilersdk | ||
|
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
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
Oops, something went wrong.