Compare commits

...

9 Commits

Author SHA1 Message Date
Joseph Macaranas
33dcecbdb2 Update rocPyDecode.yml 2024-10-07 21:50:49 -04:00
Joseph Macaranas
264df9af47 Update rocPyDecode.yml 2024-10-07 21:50:30 -04:00
Joseph Macaranas
d1ef73e1fb Update rocPyDecode.yml 2024-10-07 20:04:49 -04:00
Joseph Macaranas
f36e0cc633 Update rocPyDecode.yml 2024-10-07 19:45:17 -04:00
Joseph Macaranas
7f826aab94 Update rocPyDecode.yml 2024-10-07 19:44:56 -04:00
Joseph Macaranas
d5a48525f5 Update rocPyDecode.yml 2024-10-07 15:09:53 -04:00
Joseph Macaranas
094c9dd7fd Update rocPyDecode.yml 2024-10-07 15:05:30 -04:00
Joseph Macaranas
aa7bfdfead Update rocPyDecode.yml 2024-10-07 15:02:46 -04:00
Joseph Macaranas
3a8e30a23f Update rocPyDecode.yml 2024-10-07 14:51:16 -04:00

View File

@@ -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