diff --git a/.azuredevops/components/HIP.yml b/.azuredevops/components/HIP.yml index 4357f8b7e..8790fbf9c 100644 --- a/.azuredevops/components/HIP.yml +++ b/.azuredevops/components/HIP.yml @@ -51,7 +51,7 @@ parameters: # HIP with AMD backend jobs: - ${{ each job in parameters.jobMatrix.buildJobs }}: - - job: hip_clr_combined_amd_${{ job.os }} + - job: hip_clr_combined_${{ job.os }}_amd pool: vmImage: 'ubuntu-22.04' ${{ if eq(job.os, 'almalinux8') }}: @@ -121,7 +121,7 @@ jobs: # HIP with Nvidia backend - ${{ each job in parameters.jobMatrix.buildJobs }}: - - job: hip_clr_combined_nvidia_${{ job.os }} + - job: hip_clr_combined_${{ job.os }}_nvidia pool: vmImage: 'ubuntu-22.04' ${{ if eq(job.os, 'almalinux8') }}: diff --git a/.azuredevops/components/copyHIP.yml b/.azuredevops/components/copyHIP.yml index 4d1b1375b..61675d007 100644 --- a/.azuredevops/components/copyHIP.yml +++ b/.azuredevops/components/copyHIP.yml @@ -1,36 +1,42 @@ parameters: -- name: checkoutRepo - type: string - default: 'self' -- name: checkoutRef - type: string - default: '' +- name: jobMatrix + type: object + default: + copyJobs: + - { os: ubuntu2204, backend: amd } + - { os: almalinux8, backend: amd } + - { os: ubuntu2204, backend: nvidia } + - { os: almalinux8, backend: nvidia } # hip and clr are tightly-coupled # run this same template for both repos # any changes for clr should just trigger HIP pipeline jobs: -- job: hip_clr_combined - variables: - - group: common - - template: /.azuredevops/variables-global.yml - pool: - vmImage: ${{ variables.BASE_BUILD_POOL }} - workspace: - clean: all - steps: -# checkout nothing, just copy artifacts from triggering HIP job -# and then publish for this clr job or for this hipother job to maintain latest - - checkout: none - - template: ${{ variables.CI_TEMPLATE_PATH }}/steps/artifact-download.yml - parameters: - componentName: HIP - pipelineId: $(HIP_PIPELINE_ID) - - task: Bash@3 - displayName: Copy HIP artifacts - inputs: - targetType: inline - script: cp -a $(Agent.BuildDirectory)/rocm/* $(Build.BinariesDirectory)/ - - template: ${{ variables.CI_TEMPLATE_PATH }}/steps/manifest.yml - - template: ${{ variables.CI_TEMPLATE_PATH }}/steps/artifact-upload.yml - - template: ${{ variables.CI_TEMPLATE_PATH }}/steps/artifact-links.yml +- ${{ each job in parameters.jobMatrix.copyJobs }}: + - job: hip_clr_combined_${{ job.os }}_${{ job.backend }} + variables: + - group: common + - template: /.azuredevops/variables-global.yml + pool: + vmImage: ${{ variables.BASE_BUILD_POOL }} + workspace: + clean: all + steps: + # checkout nothing, just copy artifacts from triggering HIP job + # and then publish for this clr job or for this hipother job to maintain latest + - checkout: none + - template: ${{ variables.CI_TEMPLATE_PATH }}/steps/artifact-download.yml + parameters: + componentName: HIP + pipelineId: $(HIP_PIPELINE_ID) + fileFilter: ${{ job.os }}*${{ job.backend }} + - task: Bash@3 + displayName: Copy HIP artifacts + inputs: + targetType: inline + script: cp -a $(Agent.BuildDirectory)/rocm/* $(Build.BinariesDirectory)/ + - template: ${{ variables.CI_TEMPLATE_PATH }}/steps/manifest.yml + parameters: + os: ${{ job.os }} + - template: ${{ variables.CI_TEMPLATE_PATH }}/steps/artifact-upload.yml + - template: ${{ variables.CI_TEMPLATE_PATH }}/steps/artifact-links.yml diff --git a/.azuredevops/tag-builds/clr.yml b/.azuredevops/tag-builds/clr.yml index 105f2bcc7..7b22c1a2f 100644 --- a/.azuredevops/tag-builds/clr.yml +++ b/.azuredevops/tag-builds/clr.yml @@ -28,12 +28,30 @@ resources: endpoint: ROCm name: ROCm/hipother ref: ${{ parameters.checkoutRef }} + pipelines: + - pipeline: hip_pipeline + source: \experimental\HIP + trigger: + branches: + include: + - amd-staging + - amd-mainline + - pipeline: hipother_pipeline + source: \experimental\hipother + trigger: + branches: + include: + - amd-staging + - amd-mainline trigger: none pr: none jobs: - - template: ${{ variables.CI_COMPONENT_PATH }}/HIP.yml - parameters: - checkoutRepo: release_repo - checkoutRef: ${{ parameters.checkoutRef }} + - ${{ if eq(variables['Build.Reason'], 'ResourceTrigger') }}: + - template: ${{ variables.CI_COMPONENT_PATH }}/copyHIP.yml@pipelines_repo + - ${{ if ne(variables['Build.Reason'], 'ResourceTrigger') }}: + - template: ${{ variables.CI_COMPONENT_PATH }}/HIP.yml@pipelines_repo + parameters: + checkoutRepo: release_repo + checkoutRef: ${{ parameters.checkoutRef }}