Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
7ee82bef
Unverified
Commit
7ee82bef
authored
Apr 25, 2024
by
Alexei-V-Ivanov-AMD
Committed by
GitHub
Apr 25, 2024
Browse files
[CI/Build] Adding functionality to reset the node's GPUs before processing. (#4213)
parent
fbf152d9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
.buildkite/run-amd-test.sh
.buildkite/run-amd-test.sh
+15
-1
No files found.
.buildkite/run-amd-test.sh
View file @
7ee82bef
...
@@ -5,6 +5,19 @@ set -ex
...
@@ -5,6 +5,19 @@ set -ex
# Print ROCm version
# Print ROCm version
rocminfo
rocminfo
echo
"reset"
>
/opt/amdgpu/etc/gpu_state
while
true
;
do
sleep
3
if
grep
-q
clean /opt/amdgpu/etc/gpu_state
;
then
echo
"GPUs state is
\"
clean
\"
"
break
fi
done
# Try building the docker image
# Try building the docker image
docker build
-t
rocm
-f
Dockerfile.rocm
.
docker build
-t
rocm
-f
Dockerfile.rocm
.
...
@@ -14,7 +27,8 @@ trap remove_docker_container EXIT
...
@@ -14,7 +27,8 @@ trap remove_docker_container EXIT
remove_docker_container
remove_docker_container
# Run the image
# Run the image
docker run
--device
/dev/kfd
--device
/dev/dri
--network
host
--name
rocm rocm python3
-m
vllm.entrypoints.api_server &
export
HIP_VISIBLE_DEVICES
=
1
docker run
--device
/dev/kfd
--device
/dev/dri
--network
host
-e
HIP_VISIBLE_DEVICES
--name
rocm rocm python3
-m
vllm.entrypoints.api_server &
# Wait for the server to start
# Wait for the server to start
wait_for_server_to_start
()
{
wait_for_server_to_start
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment