mirror of
https://github.com/ROCm/ROCm.git
synced 2026-01-09 14:48:06 -05:00
173 lines
5.5 KiB
YAML
173 lines
5.5 KiB
YAML
parameters:
|
|
- name: checkoutRepo
|
|
type: string
|
|
default: 'self'
|
|
- name: checkoutRef
|
|
type: string
|
|
default: ''
|
|
# set to true if doing full build of ROCm stack
|
|
# and dependencies are pulled from same pipeline
|
|
- name: aggregatePipeline
|
|
type: boolean
|
|
default: false
|
|
- name: aptPackages
|
|
type: object
|
|
default:
|
|
- cmake
|
|
- ninja-build
|
|
- libdrm-dev
|
|
- libyaml-cpp-dev
|
|
- libpci-dev
|
|
- libpci3
|
|
- libgst-dev
|
|
- libgtest-dev
|
|
- git
|
|
- python3-pip
|
|
- name: rocmDependencies
|
|
type: object
|
|
default:
|
|
- amdsmi
|
|
- aomp
|
|
- clr
|
|
- hipBLAS-common
|
|
- hipBLASLt
|
|
- hipRAND
|
|
- llvm-project
|
|
- rocBLAS
|
|
- rocm-cmake
|
|
- rocm_smi_lib
|
|
- rocminfo
|
|
- rocprofiler-register
|
|
- ROCR-Runtime
|
|
- rocRAND
|
|
- name: rocmTestDependencies
|
|
type: object
|
|
default:
|
|
- amdsmi
|
|
- aomp
|
|
- clr
|
|
- hipBLAS-common
|
|
- hipBLASLt
|
|
- hipRAND
|
|
- llvm-project
|
|
- rocBLAS
|
|
- rocm_smi_lib
|
|
- rocminfo
|
|
- rocprofiler-register
|
|
- ROCR-Runtime
|
|
- rocRAND
|
|
- roctracer
|
|
|
|
- name: jobMatrix
|
|
type: object
|
|
default:
|
|
buildJobs:
|
|
- gfx942:
|
|
target: gfx942
|
|
- gfx90a:
|
|
target: gfx90a
|
|
testJobs:
|
|
- gfx942:
|
|
target: gfx942
|
|
confDir: MI300X
|
|
- gfx90a:
|
|
target: gfx90a
|
|
confDir: MI210
|
|
|
|
jobs:
|
|
- ${{ each job in parameters.jobMatrix.buildJobs }}:
|
|
- job: ROCmValidationSuite_build_${{ job.target }}
|
|
variables:
|
|
- group: common
|
|
- template: /.azuredevops/variables-global.yml
|
|
- name: HIP_ROCCLR_HOME
|
|
value: $(Build.BinariesDirectory)/rocm
|
|
- name: ROCM_PATH
|
|
value: $(Agent.BuildDirectory)/rocm
|
|
- name: HIP_INC_DIR
|
|
value: $(Agent.BuildDirectory)/rocm
|
|
pool: ${{ variables.MEDIUM_BUILD_POOL }}
|
|
workspace:
|
|
clean: all
|
|
steps:
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/dependencies-other.yml
|
|
parameters:
|
|
aptPackages: ${{ parameters.aptPackages }}
|
|
- 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-rocm.yml
|
|
parameters:
|
|
checkoutRef: ${{ parameters.checkoutRef }}
|
|
dependencyList: ${{ parameters.rocmDependencies }}
|
|
gpuTarget: ${{ job.target }}
|
|
aggregatePipeline: ${{ parameters.aggregatePipeline }}
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/build-cmake.yml
|
|
parameters:
|
|
extraBuildFlags: >-
|
|
-DROCM_PATH=$(Agent.BuildDirectory)/rocm
|
|
-DCMAKE_CXX_COMPILER=$(Agent.BuildDirectory)/rocm/llvm/bin/clang++
|
|
-DCMAKE_PREFIX_PATH=$(Agent.BuildDirectory)/rocm
|
|
-DCMAKE_CXX_FLAGS=-I$(Agent.BuildDirectory)/rocm/llvm/include
|
|
-DCPACK_PACKAGING_INSTALL_PREFIX=$(Build.BinariesDirectory)
|
|
-GNinja
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/manifest.yml
|
|
parameters:
|
|
gpuTarget: ${{ job.target }}
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/artifact-upload.yml
|
|
parameters:
|
|
gpuTarget: ${{ job.target }}
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/artifact-links.yml
|
|
# - template: ${{ variables.CI_TEMPLATE_PATH }}/steps/docker-container.yml
|
|
# parameters:
|
|
# aptPackages: ${{ parameters.aptPackages }}
|
|
# gpuTarget: ${{ job.target }}
|
|
# extraEnvVars:
|
|
# - HIP_ROCCLR_HOME:::/home/user/workspace/rocm
|
|
# - ROCM_PATH:::/home/user/workspace/rocm
|
|
# - HIP_INC_DIR:::/home/user/workspace/rocm
|
|
|
|
- ${{ each job in parameters.jobMatrix.testJobs }}:
|
|
- job: ROCmValidationSuite_test_${{ job.target }}
|
|
dependsOn: ROCmValidationSuite_build_${{ job.target }}
|
|
condition:
|
|
and(succeeded(),
|
|
eq(variables['ENABLE_${{ upper(job.target) }}_TESTS'], 'true'),
|
|
not(containsValue(split(variables['DISABLED_${{ upper(job.target) }}_TESTS'], ','), variables['Build.DefinitionName'])),
|
|
eq(${{ parameters.aggregatePipeline }}, False)
|
|
)
|
|
variables:
|
|
- group: common
|
|
- template: /.azuredevops/variables-global.yml
|
|
pool: ${{ job.target }}_test_pool
|
|
workspace:
|
|
clean: all
|
|
steps:
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/dependencies-other.yml
|
|
parameters:
|
|
aptPackages: ${{ parameters.aptPackages }}
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/preamble.yml
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/local-artifact-download.yml
|
|
parameters:
|
|
gpuTarget: ${{ job.target }}
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/dependencies-aqlprofile.yml
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/dependencies-rocm.yml
|
|
parameters:
|
|
checkoutRef: ${{ parameters.checkoutRef }}
|
|
dependencyList: ${{ parameters.rocmTestDependencies }}
|
|
gpuTarget: ${{ job.target }}
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/gpu-diagnostics.yml
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/test.yml
|
|
parameters:
|
|
componentName: ROCmValidationSuite
|
|
testExecutable: $(Agent.BuildDirectory)/rocm/bin/rvs -c $(Agent.BuildDirectory)/rocm/share/rocm-validation-suite/conf/${{ job.confDir }}/gst_single.conf
|
|
testParameters: ''
|
|
testDir: $(Agent.BuildDirectory)
|
|
testPublishResults: false
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/docker-container.yml
|
|
parameters:
|
|
aptPackages: ${{ parameters.aptPackages }}
|
|
environment: test
|
|
gpuTarget: ${{ job.target }}
|