mirror of
https://github.com/ROCm/ROCm.git
synced 2026-04-05 03:01:17 -04:00
* Change AMDMIGraphX to use local-artifact-download for half 5.6 * Refactor dependencies-rocm & artifact-download, consolidate component variable lists * Add mainline option to nightly * Change all components to new dependencies-rocm usage * rm aqlprofile checkoutRef * simplify dependencies-rocm, add gpuTarget back to rocMLIR * rm tag-builds from aqlprofile * Make review changes
160 lines
4.7 KiB
YAML
160 lines
4.7 KiB
YAML
parameters:
|
|
- name: checkoutRepo
|
|
type: string
|
|
default: 'self'
|
|
- name: checkoutRef
|
|
type: string
|
|
default: ''
|
|
- name: aptPackages
|
|
type: object
|
|
default:
|
|
- cmake
|
|
- libglfw3-dev
|
|
- libtbb-dev
|
|
- python3-pip
|
|
- name: rocmDependencies
|
|
type: object
|
|
default:
|
|
- AMDMIGraphX
|
|
- clr
|
|
- hipBLAS
|
|
- hipBLAS-common
|
|
- hipBLASLt
|
|
- hipCUB
|
|
- hipFFT
|
|
- HIPIFY
|
|
- hipRAND
|
|
- hipSOLVER
|
|
- hipSPARSE
|
|
- llvm-project
|
|
- rocBLAS
|
|
- rocFFT
|
|
- rocPRIM
|
|
- rocprofiler-register
|
|
- ROCR-Runtime
|
|
- rocRAND
|
|
- rocSOLVER
|
|
- rocSPARSE
|
|
- rocThrust
|
|
- name: rocmTestDependencies
|
|
type: object
|
|
default:
|
|
- AMDMIGraphX
|
|
- clr
|
|
- hipBLAS
|
|
- hipBLAS-common
|
|
- hipBLASLt
|
|
- hipCUB
|
|
- hipFFT
|
|
- HIPIFY
|
|
- hipRAND
|
|
- hipSOLVER
|
|
- hipSPARSE
|
|
- llvm-project
|
|
- rocBLAS
|
|
- rocFFT
|
|
- rocminfo
|
|
- rocPRIM
|
|
- rocprofiler-register
|
|
- ROCR-Runtime
|
|
- rocRAND
|
|
- rocSOLVER
|
|
- rocSPARSE
|
|
- rocThrust
|
|
- roctracer
|
|
|
|
jobs:
|
|
- job: rocm_examples
|
|
variables:
|
|
- group: common
|
|
- template: /.azuredevops/variables-global.yml
|
|
pool: ${{ variables.MEDIUM_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 }}
|
|
- 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_GPU_TARGET)
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/build-cmake.yml
|
|
parameters:
|
|
# https://github.com/ROCm/HIP/issues/2203
|
|
extraBuildFlags: >-
|
|
-DCMAKE_CXX_COMPILER=$(Agent.BuildDirectory)/rocm/llvm/bin/amdclang++
|
|
-DCMAKE_PREFIX_PATH=$(Agent.BuildDirectory)/rocm
|
|
-DROCM_ROOT=$(Agent.BuildDirectory)/rocm
|
|
-DAMDGPU_TARGETS=$(JOB_GPU_TARGET)
|
|
-DCMAKE_HIP_ARCHITECTURES=$(JOB_GPU_TARGET)
|
|
-DCMAKE_EXE_LINKER_FLAGS=-fgpu-rdc
|
|
- task: Bash@3
|
|
displayName: Move rocm-examples binaries to rocm/examples
|
|
inputs:
|
|
targetType: inline
|
|
script: |
|
|
mkdir -p $(Build.BinariesDirectory)/examples
|
|
mv $(Build.BinariesDirectory)/bin/* $(Build.BinariesDirectory)/examples
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/manifest.yml
|
|
parameters:
|
|
gpuTarget: $(JOB_GPU_TARGET)
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/artifact-upload.yml
|
|
parameters:
|
|
gpuTarget: $(JOB_GPU_TARGET)
|
|
|
|
- job: rocm_examples_testing
|
|
dependsOn: rocm_examples
|
|
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: TEST_LOG_FILE
|
|
value: $(Pipeline.Workspace)/rocm-examplesTestLog.log
|
|
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 }}
|
|
- 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
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/dependencies-rocm.yml
|
|
parameters:
|
|
checkoutRef: ${{ parameters.checkoutRef }}
|
|
dependencyList: ${{ parameters.rocmTestDependencies }}
|
|
gpuTarget: $(JOB_GPU_TARGET)
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/build-cmake.yml
|
|
parameters:
|
|
# https://github.com/ROCm/HIP/issues/2203
|
|
extraBuildFlags: >-
|
|
-DCMAKE_CXX_COMPILER=$(Agent.BuildDirectory)/rocm/llvm/bin/amdclang++
|
|
-DCMAKE_PREFIX_PATH=$(Agent.BuildDirectory)/rocm
|
|
-DROCM_ROOT=$(Agent.BuildDirectory)/rocm
|
|
-DAMDGPU_TARGETS=$(JOB_GPU_TARGET)
|
|
-DCMAKE_HIP_ARCHITECTURES=$(JOB_GPU_TARGET)
|
|
-DCMAKE_EXE_LINKER_FLAGS=-fgpu-rdc
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/gpu-diagnostics.yml
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/test.yml
|
|
parameters:
|
|
componentName: rocm-examples
|
|
testDir: $(Build.SourcesDirectory)/build
|