mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-01 17:17:05 +00:00
[workflow] fixed trigger condition for 8-gpu unit test (#1323)
This commit is contained in:
2
.github/workflows/build_gpu_8.yml
vendored
2
.github/workflows/build_gpu_8.yml
vendored
@@ -30,7 +30,7 @@ jobs:
|
||||
- name: Unit Testing
|
||||
run: |
|
||||
gpu_used=$(nvidia-smi -i 0 --query-gpu=memory.used --format=csv,noheader,nounits)
|
||||
[ "$gpu_used" -gt "100" ] && PYTHONPATH=$PWD pytest tests
|
||||
[ "$gpu_used" -le "100" ] && PYTHONPATH=$PWD pytest tests
|
||||
env:
|
||||
DATA: /data/scratch/cifar-10
|
||||
|
Reference in New Issue
Block a user