[ROCm] Fix MIGraphX ciagent user Permissions issues (#13137)

### Description
<!-- Describe your changes. -->

fix migraphx ci pipeline failed problem.

Disabled MIGraphX pipeline now. It will  be Enabled when this PR merge.

### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
This commit is contained in:
PeixuanZuo 2022-09-29 10:25:02 +08:00 committed by GitHub
parent 5182d6610d
commit 3157cdb19a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,6 +38,7 @@ jobs:
--device=/dev/dri \
--group-add $(video) \
--group-add $(render) \
--user $UID:$(id -g $USER) \
--volume $(Build.SourcesDirectory):/onnxruntime_src \
--volume $(Build.BinariesDirectory):/build \
--workdir /onnxruntime_src \
@ -71,6 +72,7 @@ jobs:
--device=/dev/dri \
--group-add $(video) \
--group-add $(render) \
--user $UID:$(id -g $USER) \
--volume $(Build.SourcesDirectory):/onnxruntime_src \
--volume $(Build.BinariesDirectory):/build \
--workdir /build/RelWithDebInfo \
@ -78,3 +80,5 @@ jobs:
/onnxruntime_src/tools/ci_build/github/pai/migraphx_test_launcher.sh
workingDirectory: $(Build.SourcesDirectory)
displayName: 'Run onnxruntime unit tests'
- template: templates/clean-agent-build-directory-step.yml