mirror of
https://github.com/ROCm/ROCm.git
synced 2026-04-05 03:01:17 -04:00
167 lines
5.5 KiB
YAML
167 lines
5.5 KiB
YAML
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;/$;;')"
|