Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ColossalAI
Commits
94f87f96
Unverified
Commit
94f87f96
authored
Feb 10, 2023
by
Frank Lee
Committed by
GitHub
Feb 10, 2023
Browse files
[workflow] fixed gpu memory check condition (#2659)
parent
a255a38f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
.github/workflows/build_on_schedule.yml
.github/workflows/build_on_schedule.yml
+1
-1
No files found.
.github/workflows/build_on_schedule.yml
View file @
94f87f96
...
@@ -23,7 +23,7 @@ jobs:
...
@@ -23,7 +23,7 @@ jobs:
for i in $(seq 0 7);
for i in $(seq 0 7);
do
do
gpu_used=$(nvidia-smi -i $i --query-gpu=memory.used --format=csv,noheader,nounits)
gpu_used=$(nvidia-smi -i $i --query-gpu=memory.used --format=csv,noheader,nounits)
[ "$gpu_used" -
le
"10000" ] && avai=false
[ "$gpu_used" -
gt
"10000" ] && avai=false
done
done
echo "GPU is available: $avai"
echo "GPU is available: $avai"
...
...
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