You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CUDA tests run in reasonable time with this flag enabled as well.
Remove this flag (hence enabling it be default) so that we catch
any test compatibility issues on pre-submits.
PiperOrigin-RevId: 796618710
Copy file name to clipboardExpand all lines: test/gpu/cuda/cuda.go
+4-9Lines changed: 4 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -63,10 +63,9 @@ const (
63
63
64
64
// Flags.
65
65
var (
66
-
verifyCompatibility=flag.Bool("cuda_verify_compatibility", os.Getenv("GVISOR_TEST_CUDA_VERIFY_COMPATIBILITY") =="true", "whether to verify that all tests are marked as compatible")
67
-
logSuccessfulTests=flag.Bool("cuda_log_successful_tests", false, "log console output of successful tests")
68
-
debug=flag.Bool("cuda_test_debug", false, "log more data as the test is running")
69
-
containersPerCPU=flag.Float64("cuda_containers_per_cpu", defaultContainersPerCPU, "number of parallel execution containers to spawn per CPU (floating point values allowed)")
66
+
logSuccessfulTests=flag.Bool("cuda_log_successful_tests", false, "log console output of successful tests")
67
+
debug=flag.Bool("cuda_test_debug", false, "log more data as the test is running")
68
+
containersPerCPU=flag.Float64("cuda_containers_per_cpu", defaultContainersPerCPU, "number of parallel execution containers to spawn per CPU (floating point values allowed)")
70
69
)
71
70
72
71
// InitFlags parses the flags and sets the test.parallel flag to the desired
@@ -524,9 +523,6 @@ func runSampleTest(ctx context.Context, t *testing.T, testName string, te *TestE
524
523
compat=&FullyCompatible{}
525
524
}
526
525
willFailReason:=compat.WillFail(ctx, te)
527
-
ifwillFailReason!=""&&!*verifyCompatibility {
528
-
returnfmt.Sprintf("this test is expected to fail (%s) --cuda_verify_compatibility=true to verify compatibility)", willFailReason), nil
0 commit comments