mirror of
https://github.com/ROCm/ROCm.git
synced 2026-01-09 14:48:06 -05:00
85 lines
2.7 KiB
YAML
85 lines
2.7 KiB
YAML
parameters:
|
|
- name: checkoutRepo
|
|
type: string
|
|
default: 'self'
|
|
- name: checkoutRef
|
|
type: string
|
|
default: ''
|
|
- name: aptPackages
|
|
type: object
|
|
default:
|
|
- software-properties-common
|
|
- python3-pip
|
|
- cmake
|
|
- ninja-build
|
|
- libsqlite3-dev
|
|
- libbz2-dev
|
|
- nlohmann-json3-dev
|
|
- libgtest-dev
|
|
- name: rocmDependencies
|
|
type: object
|
|
default:
|
|
- rocMLIR
|
|
- rocRAND
|
|
- rocBLAS
|
|
- half
|
|
- composable_kernel
|
|
- rocm-cmake
|
|
- llvm-project
|
|
- ROCR-Runtime
|
|
- clr
|
|
- rocminfo
|
|
|
|
jobs:
|
|
- job: MIOpen
|
|
variables:
|
|
- group: common
|
|
- template: /.azuredevops/variables-global.yml
|
|
pool: ${{ variables.MEDIUM_BUILD_POOL }}
|
|
workspace:
|
|
clean: all
|
|
steps:
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/dependencies-other.yml
|
|
parameters:
|
|
aptPackages: ${{ parameters.aptPackages }}
|
|
# The default boost library from apt is 1.74, which does not satisfy MIOpen's build requirement (1.79+)
|
|
# Upgrade boost from apt by following https://launchpad.net/~mhier/+archive/ubuntu/libboost-latest
|
|
- task: Bash@3
|
|
displayName: 'update boost version'
|
|
inputs:
|
|
targetType: inline
|
|
script: sudo add-apt-repository ppa:mhier/libboost-latest -y
|
|
- task: Bash@3
|
|
displayName: 'install boost'
|
|
inputs:
|
|
targetType: inline
|
|
script: sudo apt-get --yes install libboost1.83-dev libboost-system1.83-dev libboost-filesystem1.83-dev
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/preamble.yml
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/checkout.yml
|
|
parameters:
|
|
checkoutRepo: ${{ parameters.checkoutRepo }}
|
|
# CI case: download latest default branch build
|
|
- ${{ if eq(parameters.checkoutRef, '') }}:
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/dependencies-rocm.yml
|
|
parameters:
|
|
dependencyList: ${{ parameters.rocmDependencies }}
|
|
dependencySource: staging
|
|
# manual build case: triggered by ROCm/ROCm repo
|
|
- ${{ if ne(parameters.checkoutRef, '') }}:
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/dependencies-rocm.yml
|
|
parameters:
|
|
dependencyList: ${{ parameters.rocmDependencies }}
|
|
dependencySource: tag-builds
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/build-cmake.yml
|
|
parameters:
|
|
extraBuildFlags: >-
|
|
-DMIOPEN_BACKEND=HIP
|
|
-DCMAKE_CXX_COMPILER=$(Agent.BuildDirectory)/rocm/llvm/bin/amdclang++
|
|
-DCMAKE_PREFIX_PATH=$(Agent.BuildDirectory)/rocm
|
|
-DMIOPEN_ENABLE_AI_KERNEL_TUNING=OFF
|
|
-DMIOPEN_ENABLE_AI_IMMED_MODE_FALLBACK=OFF
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
-DBUILD_TESTING=ON
|
|
-GNinja
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/artifact-upload.yml
|