Skip to content

Commit 7a0401f

Browse files
EtiennePerotgvisor-bot
authored andcommitted
Run CUDA tests as part of GPU tests.
This runs in continuous mode only. PiperOrigin-RevId: 688755446
1 parent 285612a commit 7a0401f

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

.buildkite/pipeline.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,16 @@ steps:
190190
- make cos-gpu-all-tests
191191
agents:
192192
queue: cos-canary-gpu
193+
- <<: *common
194+
<<: *source_test_continuous
195+
label: ":fish: CUDA tests"
196+
# This is its own test rather than being part of the GPU tests,
197+
# because it takes around 15 minutes to run.
198+
commands:
199+
- make sudo TARGETS=//tools/gpu:main ARGS="install --latest" || cat /var/log/nvidia-installer.log
200+
- make sudo TARGETS=//test/gpu:cuda_test
201+
agents:
202+
queue: gpu
193203
- <<: *common
194204
<<: *source_test_continuous
195205
label: ":screwdriver: All GPU Drivers Test"

.buildkite/release.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,12 @@ steps:
7373
- tools/gpu/all_drivers_test.sh
7474
agents:
7575
queue: gpu
76+
- <<: *common
77+
label: ":fish: CUDA tests in compatibility-verifying mode"
78+
# This is its own test rather than being part of the GPU tests,
79+
# because it takes around an hour to run.
80+
commands:
81+
- make sudo TARGETS=//tools/gpu:main ARGS="install --latest" || cat /var/log/nvidia-installer.log
82+
- make sudo TARGETS=//test/gpu:cuda_test ARGS="--cuda_verify_compatibility=true"
83+
agents:
84+
queue: gpu

test/gpu/cuda_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ func TestCUDA(t *testing.T) {
745745
durationPct := 100.0 * float64(startedAgo) / float64(testDeadline.Sub(testStart))
746746
testLog(t, "[Timing] %d/%d tests (%.1f%%) finished executing. Test started %v ago, deadline in %v (%.1f%%).", testsDone, numTests, donePct, startedAgo.Truncate(time.Second), deadlineIn.Truncate(time.Second), durationPct)
747747
if len(failedTests) > 0 {
748-
testLog(t, "[Failed] %d test failed: %v", len(failedTests), strings.Join(failedTests, ", "))
748+
testLog(t, "[Failed] %d test(s) failed: %v", len(failedTests), strings.Join(failedTests, ", "))
749749
}
750750
testLog(t, "[Pool] %v", cp.String())
751751
}

0 commit comments

Comments
 (0)