@@ -8,42 +8,52 @@ using TensorOperations: IndexError
88using TensorOperations: BaseCopy, BaseView, StridedNative, StridedBLAS
99using TensorOperations: DefaultAllocator, ManualAllocator
1010
11- @testset " tensoropt" verbose = true begin
12- include (" tensoropt.jl" )
13- end
14- @testset " auxiliary" verbose = true begin
15- include (" auxiliary.jl" )
16- end
17- @testset " macro keywords" verbose = true begin
18- include (" macro_kwargs.jl" )
19- end
20- @testset " method syntax" verbose = true begin
21- include (" methods.jl" )
22- end
23- @testset " macro with index notation" verbose = true begin
24- include (" tensor.jl" )
25- end
26- @testset " ad" verbose = false begin
27- include (" ad.jl" )
28- end
11+ # don't run all tests on GPU, only the GPU
12+ # specific ones
13+ is_buildkite = get (ENV , " BUILDKITE" , " false" ) == " true"
14+ if ! is_buildkite
2915
30- # note: cuTENSOR should not be loaded before this point
31- # as there is a test which requires it to be loaded after
32- @testset " cuTENSOR extension" verbose = true begin
33- include (" cutensor.jl" )
16+ @testset " tensoropt" verbose = true begin
17+ include (" tensoropt.jl" )
18+ end
19+ @testset " auxiliary" verbose = true begin
20+ include (" auxiliary.jl" )
21+ end
22+ @testset " macro keywords" verbose = true begin
23+ include (" macro_kwargs.jl" )
24+ end
25+ @testset " method syntax" verbose = true begin
26+ include (" methods.jl" )
27+ end
28+ @testset " macro with index notation" verbose = true begin
29+ include (" tensor.jl" )
30+ end
31+ @testset " ad" verbose = false begin
32+ include (" ad.jl" )
33+ end
3434end
3535
36- # note: Bumper should not be loaded before this point
37- # as there is a test which requires it to be loaded after
38- @testset " Bumper extension" verbose = true begin
39- include (" butensor.jl" )
36+ if is_buildkite
37+ # note: cuTENSOR should not be loaded before this point
38+ # as there is a test which requires it to be loaded after
39+ @testset " cuTENSOR extension" verbose = true begin
40+ include (" cutensor.jl" )
41+ end
4042end
4143
42- @testset " Polynomials" begin
43- include (" polynomials.jl" )
44- end
44+ if ! is_buildkite
45+ # note: Bumper should not be loaded before this point
46+ # as there is a test which requires it to be loaded after
47+ @testset " Bumper extension" verbose = true begin
48+ include (" butensor.jl" )
49+ end
50+
51+ @testset " Polynomials" begin
52+ include (" polynomials.jl" )
53+ end
4554
46- @testset " Aqua" verbose = true begin
47- using Aqua
48- Aqua. test_all (TensorOperations)
55+ @testset " Aqua" verbose = true begin
56+ using Aqua
57+ Aqua. test_all (TensorOperations)
58+ end
4959end
0 commit comments