mirror of
https://github.com/ROCm/ROCm.git
synced 2026-04-05 03:01:17 -04:00
Added AlmaLinux 8 Pipeline Support - aomp - HIPIFY - rocDecode - ROCgdb - rocJPEG - rocprofiler - aqlprofile dependency template - build autotools template - download latest cmake template Pipeline Changes - More gfx build targets. - Copying llvm-lit to the llvm-project published artifacts. - HIPIFY now uses our built version of llvm-project for its pipeline. - Disable testing in HIPIFY pipeline due to low value provided. Revisit in the future. - aomp's ROCm dependency list reduced. - aomp's openmp build had issues with ninja on AlmaLinux 8.
184 lines
6.4 KiB
YAML
184 lines
6.4 KiB
YAML
parameters:
|
|
- name: componentName
|
|
type: string
|
|
default: rocJPEG
|
|
- 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
|
|
- libdrm-dev
|
|
- libstdc++-12-dev
|
|
- libva-amdgpu-dev
|
|
- mesa-amdgpu-va-drivers
|
|
- ninja-build
|
|
- pkg-config
|
|
- python3-pip
|
|
- name: rocmDependencies
|
|
type: object
|
|
default:
|
|
- clr
|
|
- llvm-project
|
|
- rocm-cmake
|
|
- rocminfo
|
|
- rocm-core
|
|
- rocprofiler-register
|
|
- ROCR-Runtime
|
|
- name: rocmTestDependencies
|
|
type: object
|
|
default:
|
|
- clr
|
|
- llvm-project
|
|
- rocminfo
|
|
- rocprofiler-register
|
|
- ROCR-Runtime
|
|
|
|
- name: jobMatrix
|
|
type: object
|
|
default:
|
|
buildJobs:
|
|
- { os: ubuntu2204, packageManager: apt, target: gfx942 }
|
|
- { os: ubuntu2204, packageManager: apt, target: gfx90a }
|
|
- { os: ubuntu2204, packageManager: apt, target: gfx1201 }
|
|
- { os: ubuntu2204, packageManager: apt, target: gfx1030 }
|
|
- { os: ubuntu2204, packageManager: apt, target: gfx1100 }
|
|
- { os: almalinux8, packageManager: dnf, target: gfx942 }
|
|
- { os: almalinux8, packageManager: dnf, target: gfx90a }
|
|
- { os: almalinux8, packageManager: dnf, target: gfx1201 }
|
|
- { os: almalinux8, packageManager: dnf, target: gfx1100 }
|
|
- { os: almalinux8, packageManager: dnf, target: gfx1030 }
|
|
testJobs:
|
|
- { os: ubuntu2204, packageManager: apt, target: gfx942 }
|
|
- { os: ubuntu2204, packageManager: apt, target: gfx90a }
|
|
|
|
jobs:
|
|
- ${{ each job in parameters.jobMatrix.buildJobs }}:
|
|
- job: ${{ parameters.componentName }}_build_${{ job.os }}_${{ job.target }}
|
|
variables:
|
|
- group: common
|
|
- template: /.azuredevops/variables-global.yml
|
|
- name: ROCM_PATH
|
|
value: $(Agent.BuildDirectory)/rocm
|
|
pool:
|
|
${{ if eq(job.os, 'ubuntu2404') }}:
|
|
name: rocm-ci_medium_build_pool_2404
|
|
${{ else }}:
|
|
name: ${{ variables.MEDIUM_BUILD_POOL }}
|
|
${{ if eq(job.os, 'almalinux8') }}:
|
|
container:
|
|
image: rocmexternalcicd.azurecr.io/manylinux228:latest
|
|
endpoint: ContainerService3
|
|
workspace:
|
|
clean: all
|
|
steps:
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/dependencies-other.yml
|
|
parameters:
|
|
aptPackages: ${{ parameters.aptPackages }}
|
|
packageManager: ${{ job.packageManager }}
|
|
registerROCmPackages: true
|
|
- 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 }}
|
|
os: ${{ job.os }}
|
|
aggregatePipeline: ${{ parameters.aggregatePipeline }}
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/build-cmake.yml
|
|
parameters:
|
|
os: ${{ job.os }}
|
|
consolidateBuildAndInstall: true
|
|
extraBuildFlags: >-
|
|
-DCMAKE_PREFIX_PATH="$(Agent.BuildDirectory)/rocm"
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
-DGPU_TARGETS=${{ job.target }}
|
|
-GNinja
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/manifest.yml
|
|
parameters:
|
|
componentName: ${{ parameters.componentName }}
|
|
os: ${{ job.os }}
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/artifact-upload.yml
|
|
parameters:
|
|
componentName: ${{ parameters.componentName }}
|
|
gpuTarget: ${{ job.target }}
|
|
os: ${{ job.os }}
|
|
- 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 }}
|
|
# registerROCmPackages: true
|
|
|
|
- ${{ each job in parameters.jobMatrix.testJobs }}:
|
|
- job: ${{ parameters.componentName }}_test_${{ job.os }}_${{ job.target }}
|
|
dependsOn: ${{ parameters.componentName }}_build_${{ job.os }}_${{ 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
|
|
- name: ROCM_PATH
|
|
value: $(Agent.BuildDirectory)/rocm
|
|
pool:
|
|
name: ${{ job.target }}_test_pool
|
|
workspace:
|
|
clean: all
|
|
steps:
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/dependencies-other.yml
|
|
parameters:
|
|
aptPackages: ${{ parameters.aptPackages }}
|
|
packageManager: ${{ job.packageManager }}
|
|
registerROCmPackages: true
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/preamble.yml
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/local-artifact-download.yml
|
|
parameters:
|
|
gpuTarget: ${{ job.target }}
|
|
os: ${{ job.os }}
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/dependencies-aqlprofile.yml
|
|
parameters:
|
|
os: ${{ job.os }}
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/dependencies-rocm.yml
|
|
parameters:
|
|
checkoutRef: ${{ parameters.checkoutRef }}
|
|
dependencyList: ${{ parameters.rocmTestDependencies }}
|
|
gpuTarget: ${{ job.target }}
|
|
os: ${{ job.os }}
|
|
- task: Bash@3
|
|
displayName: Build rocJPEG tests
|
|
inputs:
|
|
targetType: inline
|
|
script: |
|
|
${{ iif(eq(job.os, 'almalinux8'), 'source /opt/rh/gcc-toolset-14/enable', '') }}
|
|
mkdir rocJPEG-tests
|
|
cd rocJPEG-tests
|
|
cmake $(Agent.BuildDirectory)/rocm/share/rocjpeg/test
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/gpu-diagnostics.yml
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/test.yml
|
|
parameters:
|
|
componentName: rocJPEG
|
|
testDir: 'rocJPEG-tests'
|
|
os: ${{ job.os }}
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/docker-container.yml
|
|
parameters:
|
|
aptPackages: ${{ parameters.aptPackages }}
|
|
environment: test
|
|
gpuTarget: ${{ job.target }}
|
|
registerROCmPackages: true
|