mirror of
https://github.com/ROCm/ROCm.git
synced 2026-01-09 22:58:17 -05:00
Compare commits
9 Commits
rocm-6.3.3
...
amd/jmacar
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
33dcecbdb2 | ||
|
|
264df9af47 | ||
|
|
d1ef73e1fb | ||
|
|
f36e0cc633 | ||
|
|
7f826aab94 | ||
|
|
d5a48525f5 | ||
|
|
094c9dd7fd | ||
|
|
aa7bfdfead | ||
|
|
3a8e30a23f |
@@ -24,9 +24,7 @@ parameters:
|
||||
- name: pipModules
|
||||
type: object
|
||||
default:
|
||||
- -i
|
||||
- https://test.pypi.org/simple
|
||||
- hip-python
|
||||
- cibuildwheel
|
||||
- name: rocmDependencies
|
||||
type: object
|
||||
default:
|
||||
@@ -48,12 +46,6 @@ jobs:
|
||||
vmImage: ${{ variables.BASE_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:
|
||||
@@ -66,12 +58,11 @@ jobs:
|
||||
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/dependencies-rocm.yml
|
||||
parameters:
|
||||
dependencyList: ${{ parameters.rocmDependencies }}
|
||||
gpuTarget: $(JOB_GPU_TARGET)
|
||||
# CI case: download latest default branch build
|
||||
${{ if eq(parameters.checkoutRef, '') }}:
|
||||
${{ if eq(parameters.checkoutRef, 'develop') }}:
|
||||
dependencySource: staging
|
||||
# manual build case: triggered by ROCm/ROCm repo
|
||||
${{ elseif ne(parameters.checkoutRef, '') }}:
|
||||
${{ elseif ne(parameters.checkoutRef, 'develop') }}:
|
||||
dependencySource: tag-builds
|
||||
- task: Bash@3
|
||||
displayName: 'ROCm symbolic link'
|
||||
@@ -80,39 +71,53 @@ jobs:
|
||||
script: |
|
||||
sudo rm -rf /opt/rocm
|
||||
sudo ln -s $(Agent.BuildDirectory)/rocm /opt/rocm
|
||||
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/build-cmake.yml
|
||||
parameters:
|
||||
extraBuildFlags: >-
|
||||
-DROCM_PATH=$(Agent.BuildDirectory)/rocm
|
||||
-DCMAKE_PREFIX_PATH=$(Agent.BuildDirectory)/rocm
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DAMDGPU_TARGETS=$(JOB_GPU_TARGET)
|
||||
-DCMAKE_INSTALL_PREFIX_PYTHON=$(Build.BinariesDirectory)
|
||||
-GNinja
|
||||
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/artifact-upload.yml
|
||||
parameters:
|
||||
gpuTarget: $(JOB_GPU_TARGET)
|
||||
publish: false
|
||||
# - template: ${{ variables.CI_TEMPLATE_PATH }}/steps/build-cmake.yml
|
||||
# parameters:
|
||||
# extraBuildFlags: >-
|
||||
# -DROCM_PATH=$(Agent.BuildDirectory)/rocm
|
||||
# -DCMAKE_PREFIX_PATH=$(Agent.BuildDirectory)/rocm
|
||||
# -DCMAKE_BUILD_TYPE=Release
|
||||
# -DAMDGPU_TARGETS=$(JOB_GPU_TARGET)
|
||||
# -DCMAKE_INSTALL_PREFIX_PYTHON=$(Build.BinariesDirectory)
|
||||
# -GNinja
|
||||
# - template: ${{ variables.CI_TEMPLATE_PATH }}/steps/artifact-upload.yml
|
||||
# parameters:
|
||||
# gpuTarget: $(JOB_GPU_TARGET)
|
||||
# publish: false
|
||||
# - task: Bash@3
|
||||
# displayName: Create wheel file
|
||||
# inputs:
|
||||
# targetType: inline
|
||||
# script: |
|
||||
# export ROCM_PATH=$(Agent.BuildDirectory)/rocm
|
||||
# export HIP_INCLUDE_DIRS=$(Agent.BuildDirectory)/rocm/include/hip
|
||||
# python3 setup.py bdist_wheel
|
||||
# workingDirectory: $(Build.SourcesDirectory)
|
||||
# - template: ${{ variables.CI_TEMPLATE_PATH }}/steps/artifact-prepare-package.yml
|
||||
# parameters:
|
||||
# sourceDir: $(Build.SourcesDirectory)/dist
|
||||
# contentsString: '*.whl'
|
||||
# targetDir: $(Build.ArtifactStagingDirectory)
|
||||
# clean: false
|
||||
# - task: PublishPipelineArtifact@1
|
||||
# displayName: 'wheel file Publish'
|
||||
# retryCountOnTaskFailure: 3
|
||||
# inputs:
|
||||
# targetPath: $(Build.ArtifactStagingDirectory)
|
||||
- task: Bash@3
|
||||
displayName: Create wheel file
|
||||
inputs:
|
||||
targetType: inline
|
||||
script: |
|
||||
export ROCM_PATH=$(Agent.BuildDirectory)/rocm
|
||||
export HIP_INCLUDE_DIRS=$(Agent.BuildDirectory)/rocm/include/hip
|
||||
python3 setup.py bdist_wheel
|
||||
script: cibuildwheel --output-dir wheelhouse .
|
||||
workingDirectory: $(Build.SourcesDirectory)
|
||||
- template: ${{ variables.CI_TEMPLATE_PATH }}/steps/artifact-prepare-package.yml
|
||||
parameters:
|
||||
sourceDir: $(Build.SourcesDirectory)/dist
|
||||
contentsString: '*.whl'
|
||||
targetDir: $(Build.ArtifactStagingDirectory)
|
||||
clean: false
|
||||
env:
|
||||
CIBW_BEFORE_BUILD: python3 rocPyDecode-requirements.py
|
||||
CIBW_ENVIRONMENT: ROCM_PATH='$(Agent.BuildDirectory)/rocm'
|
||||
- task: PublishPipelineArtifact@1
|
||||
displayName: 'wheel file Publish'
|
||||
retryCountOnTaskFailure: 3
|
||||
inputs:
|
||||
targetPath: $(Build.ArtifactStagingDirectory)
|
||||
targetPath: wheelhouse
|
||||
|
||||
- job: rocPyDecode_testing
|
||||
dependsOn: rocPyDecode
|
||||
|
||||
Reference in New Issue
Block a user