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