mirror of
https://github.com/hanzoai/ROCm.git
synced 2026-09-30 20:37:25 +00:00
- Add rocm_smi_lib dependency to rocprofiler-systems. - Explicitly set OPENCL_INC_DIR in ROCR-Runtime test job.
151 lines
5.7 KiB
YAML
151 lines
5.7 KiB
YAML
parameters:
|
|
- name: checkoutRepo
|
|
type: string
|
|
default: 'self'
|
|
- name: checkoutRef
|
|
type: string
|
|
default: ''
|
|
- name: aptPackages
|
|
type: object
|
|
default:
|
|
- cmake
|
|
- g++
|
|
- libdrm-dev
|
|
- libelf-dev
|
|
- libnuma-dev
|
|
- pkg-config
|
|
- python3-pip
|
|
- name: rocmDependencies
|
|
type: object
|
|
default:
|
|
- llvm-project
|
|
- rocprofiler-register
|
|
- name: rocmTestDependencies
|
|
type: object
|
|
default:
|
|
- llvm-project
|
|
- rocm_smi_lib
|
|
- rocprofiler-register
|
|
|
|
jobs:
|
|
- job: ROCR_Runtime
|
|
variables:
|
|
- group: common
|
|
- template: /.azuredevops/variables-global.yml
|
|
pool: ${{ variables.LOW_BUILD_POOL }}
|
|
workspace:
|
|
clean: all
|
|
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 }}
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/build-cmake.yml
|
|
parameters:
|
|
extraBuildFlags: >-
|
|
-DCMAKE_PREFIX_PATH=$(Agent.BuildDirectory)/rocm
|
|
-DBUILD_SHARED_LIBS=ON
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
- 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
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/docker-container.yml
|
|
parameters:
|
|
aptPackages: ${{ parameters.aptPackages }}
|
|
|
|
- job: ROCR_Runtime_testing
|
|
dependsOn: ROCR_Runtime
|
|
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 }}
|
|
- task: Bash@3
|
|
displayName: Install libhwloc5
|
|
inputs:
|
|
targetType: 'inline'
|
|
script: |
|
|
wget http://ftp.us.debian.org/debian/pool/main/h/hwloc/libhwloc5_1.11.12-3_amd64.deb
|
|
wget http://ftp.us.debian.org/debian/pool/main/h/hwloc/libhwloc-dev_1.11.12-3_amd64.deb
|
|
sudo apt install -y --allow-downgrades ./libhwloc5_1.11.12-3_amd64.deb ./libhwloc-dev_1.11.12-3_amd64.deb
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/preamble.yml
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/local-artifact-download.yml
|
|
- 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/checkout.yml
|
|
parameters:
|
|
checkoutRepo: ${{ parameters.checkoutRepo }}
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/gpu-diagnostics.yml
|
|
parameters:
|
|
runRocminfo: false
|
|
- task: Bash@3
|
|
displayName: Build kfdtest
|
|
continueOnError: true
|
|
inputs:
|
|
targetType: 'inline'
|
|
workingDirectory: $(Build.SourcesDirectory)/libhsakmt/tests/kfdtest
|
|
script: |
|
|
mkdir build && cd build
|
|
cmake -DCMAKE_PREFIX_PATH=$(Agent.BuildDirectory)/rocm ..
|
|
make
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/test.yml
|
|
parameters:
|
|
componentName: kfdtest
|
|
testExecutable: BIN_DIR=$(Build.SourcesDirectory)/libhsakmt/tests/kfdtest/build ./run_kfdtest.sh
|
|
testParameters: '-p core --gtest_output=xml:./test_output.xml --gtest_color=yes'
|
|
testDir: $(Build.SourcesDirectory)/libhsakmt/tests/kfdtest/scripts
|
|
- task: Bash@3
|
|
displayName: Build rocrtst
|
|
continueOnError: true
|
|
inputs:
|
|
targetType: 'inline'
|
|
workingDirectory: $(Build.SourcesDirectory)/rocrtst/suites/test_common
|
|
script: |
|
|
sudo rm -rf $(Agent.BuildDirectory)/external/llvm-project
|
|
mkdir -p $(Agent.BuildDirectory)/external/llvm-project/clang/lib
|
|
sudo ln -s $(Agent.BuildDirectory)/rocm/llvm/lib/clang/20/include $(Agent.BuildDirectory)/external/llvm-project/clang/lib/Headers
|
|
mkdir build && cd build
|
|
cmake .. \
|
|
-DCMAKE_PREFIX_PATH=$(Agent.BuildDirectory)/rocm \
|
|
-DTARGET_DEVICES=$(JOB_GPU_TARGET) \
|
|
-DROCM_DIR=$(Agent.BuildDirectory)/rocm \
|
|
-DLLVM_DIR=$(Agent.BuildDirectory)/rocm/llvm/bin \
|
|
-DOPENCL_DIR=$(Agent.BuildDirectory)/rocm/llvm/bin
|
|
-DOPENCL_INC_DIR=$(Agent.BuildDirectory)/rocm/llvm/lib/clang/21/include
|
|
make
|
|
make rocrtst_kernels
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/test.yml
|
|
parameters:
|
|
componentName: rocrtst
|
|
testExecutable: ./rocrtst64
|
|
testParameters: '--gtest_filter="-rocrtstNeg.Memory_Negative_Tests:rocrtstFunc.Memory_Max_Mem" --gtest_output=xml:./test_output.xml --gtest_color=yes'
|
|
testDir: $(Build.SourcesDirectory)/rocrtst/suites/test_common/build/$(JOB_GPU_TARGET)
|
|
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/docker-container.yml
|
|
parameters:
|
|
aptPackages: ${{ parameters.aptPackages }}
|
|
environment: test
|
|
gpuTarget: $(JOB_GPU_TARGET)
|
|
# docker image will be missing libhwloc5
|