mirror of
https://github.com/ROCm/ROCm.git
synced 2026-04-05 03:01:17 -04:00
- Remove undefined gpuTarget references in docker step of some build jobs. - Remove deprecated/renamed repo's pipeline yaml file.
164 lines
5.0 KiB
YAML
164 lines
5.0 KiB
YAML
parameters:
|
|
- name: checkoutRepo
|
|
type: string
|
|
default: 'self'
|
|
- name: checkoutRef
|
|
type: string
|
|
default: ''
|
|
- name: aptPackages
|
|
type: object
|
|
default:
|
|
- build-essential
|
|
- libdrm-amdgpu-dev
|
|
- libdrm-dev
|
|
- libdw-dev
|
|
- libelf-dev
|
|
- pkg-config
|
|
- python3-pip
|
|
- name: pipModules
|
|
type: object
|
|
default:
|
|
- black
|
|
- clang-format
|
|
- clang-tidy
|
|
- cmake
|
|
- cmake-format
|
|
- dataclasses
|
|
- numpy
|
|
- otf2
|
|
- pandas
|
|
- perfetto
|
|
- pycobertura
|
|
- pytest>=6.2.5
|
|
- pyyaml
|
|
- name: rocmDependencies
|
|
type: object
|
|
default:
|
|
- clr
|
|
- llvm-project
|
|
- rccl
|
|
- rocDecode
|
|
- rocJPEG
|
|
- rocm-cmake
|
|
- rocm-core
|
|
- rocminfo
|
|
- ROCR-Runtime
|
|
- rocprofiler-register
|
|
|
|
jobs:
|
|
- job: rocprofiler_sdk
|
|
variables:
|
|
- group: common
|
|
- template: /.azuredevops/variables-global.yml
|
|
pool: ${{ variables.LOW_BUILD_POOL }}
|
|
workspace:
|
|
clean: all
|
|
strategy:
|
|
matrix:
|
|
gfx942:
|
|
JOB_GPU_TARGET: gfx942
|
|
gfx90a:
|
|
JOB_GPU_TARGET: gfx90a
|
|
steps:
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/dependencies-other.yml
|
|
parameters:
|
|
aptPackages: ${{ parameters.aptPackages }}
|
|
pipModules: ${{ parameters.pipModules }}
|
|
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-aqlprofile.yml
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/dependencies-rocm.yml
|
|
parameters:
|
|
checkoutRef: ${{ parameters.checkoutRef }}
|
|
dependencyList: ${{ parameters.rocmDependencies }}
|
|
gpuTarget: $(JOB_GPU_TARGET)
|
|
- task: Bash@3
|
|
displayName: Add Python site-packages binaries to path
|
|
inputs:
|
|
targetType: inline
|
|
script: |
|
|
USER_BASE=$(python3 -m site --user-base)
|
|
echo "##vso[task.prependpath]$USER_BASE/bin"
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/build-cmake.yml
|
|
parameters:
|
|
extraBuildFlags: >-
|
|
-DCMAKE_PREFIX_PATH=$(Agent.BuildDirectory)/rocm
|
|
-DROCPROFILER_BUILD_TESTS=ON
|
|
-DROCPROFILER_BUILD_SAMPLES=ON
|
|
-DROCPROFILER_BUILD_RELEASE=ON
|
|
-DGPU_TARGETS=$(JOB_GPU_TARGET)
|
|
multithreadFlag: -- -j4
|
|
- 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)
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/artifact-links.yml
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/docker-container.yml
|
|
parameters:
|
|
aptPackages: ${{ parameters.aptPackages }}
|
|
pipModules: ${{ parameters.pipModules }}
|
|
gpuTarget: $(JOB_GPU_TARGET)
|
|
registerROCmPackages: true
|
|
|
|
- job: rocprofiler_sdk_testing
|
|
dependsOn: rocprofiler_sdk
|
|
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
|
|
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 }}
|
|
pipModules: ${{ parameters.pipModules }}
|
|
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-aqlprofile.yml
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/dependencies-rocm.yml
|
|
parameters:
|
|
checkoutRef: ${{ parameters.checkoutRef }}
|
|
dependencyList: ${{ parameters.rocmDependencies }}
|
|
gpuTarget: $(JOB_GPU_TARGET)
|
|
- task: Bash@3
|
|
displayName: Add Python site-packages binaries to path
|
|
inputs:
|
|
targetType: inline
|
|
script: |
|
|
USER_BASE=$(python3 -m site --user-base)
|
|
echo "##vso[task.prependpath]$USER_BASE/bin"
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/build-cmake.yml
|
|
parameters:
|
|
extraBuildFlags: >-
|
|
-DCMAKE_PREFIX_PATH=$(Agent.BuildDirectory)/rocm
|
|
-DROCPROFILER_BUILD_TESTS=ON
|
|
-DROCPROFILER_BUILD_SAMPLES=ON
|
|
-DROCPROFILER_BUILD_RELEASE=ON
|
|
-DGPU_TARGETS=$(JOB_GPU_TARGET)
|
|
multithreadFlag: -- -j16
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/test.yml
|
|
parameters:
|
|
componentName: rocprofiler-sdk
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/docker-container.yml
|
|
parameters:
|
|
aptPackages: ${{ parameters.aptPackages }}
|
|
pipModules: ${{ parameters.pipModules }}
|
|
environment: test
|
|
gpuTarget: $(JOB_GPU_TARGET)
|
|
registerROCmPackages: true
|