Skip to content

Commit 3be7734

Browse files
kshyattKatharine Hyatt
andauthored
Update URLs and support buildkite GPU testing (#222)
* Update URLs and support buildkite GPU testing * Run both v1 and LTS --------- Co-authored-by: Katharine Hyatt <katharine.s.hyatt@gmail.com>
1 parent 7176c11 commit 3be7734

File tree

3 files changed

+81
-38
lines changed

3 files changed

+81
-38
lines changed

.buildkite/pipeline.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
env:
2+
SECRET_CODECOV_TOKEN: "NsHKj2ZxqUDfErNc+zlH6erC00pk0XRZeNAaU+hyRg6oHlIuSUVL53Z0/MW6Xeq8mBsYsfdG3rmE+h0hoGXj6swpmtjCnLI0CAHUSVOTKNHQ4R6VmKuNnLkNQX7+GO6PEcnV+sCMDSt/nhci0lUl/9qo+6uT/VA+9E6XiKOsKV8nL+kb/GDNJqrG8u2JJzd9EcrFG9Vf4p7tLgsafhQq+yQeVdeYxPWKPx2x6+K2w2WrGel0RlVfyYFLEGHo4TW4+OPPoMOJBCA+kkE2I8OlqzzMUMkULhwhWujHyOrWBZ74EFY2zbwYD/iiYTlGJW8UWaOn561uJp3J7+nab4nEYA==;U2FsdGVkX1/EACeMbht8x2ar6VrhBrcGZUtM4/B4viOz590nUZNIUkWPkjpmdriAAP3t1KEj2LlRg+z/FK+CSQ=="
3+
4+
steps:
5+
- label: "Julia v1"
6+
plugins:
7+
- JuliaCI/julia#v1:
8+
version: "1"
9+
- JuliaCI/julia-test#v1: ~
10+
- JuliaCI/julia-coverage#v1:
11+
dirs:
12+
- src
13+
- ext
14+
agents:
15+
queue: "juliagpu"
16+
cuda: "*"
17+
if: build.message !~ /\[skip tests\]/
18+
timeout_in_minutes: 30
19+
20+
- label: "Julia LTS"
21+
plugins:
22+
- JuliaCI/julia#v1:
23+
version: "1.10" # "lts" isn't valid
24+
- JuliaCI/julia-test#v1: ~
25+
- JuliaCI/julia-coverage#v1:
26+
dirs:
27+
- src
28+
- ext
29+
agents:
30+
queue: "juliagpu"
31+
cuda: "*"
32+
if: build.message !~ /\[skip tests\]/
33+
timeout_in_minutes: 30

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<picture>
2-
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/Jutho/TensorOperations.jl/blob/master/docs/src/assets/logo-dark.svg">
3-
<img alt="TensorOperations.jl logo" src="https://github.com/Jutho/TensorOperations.jl/blob/master/docs/src/assets/logo.svg" width="150">
2+
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/QuantumKitHub/TensorOperations.jl/blob/master/docs/src/assets/logo-dark.svg">
3+
<img alt="TensorOperations.jl logo" src="https://github.com/QuantumKitHub/TensorOperations.jl/blob/master/docs/src/assets/logo.svg" width="150">
44
</picture>
55

66
# TensorOperations.jl
@@ -27,16 +27,16 @@ Fast tensor operations using a convenient Einstein index notation.
2727
[downloads-img]: https://img.shields.io/badge/dynamic/json?url=http%3A%2F%2Fjuliapkgstats.com%2Fapi%2Fv1%2Ftotal_downloads%2FTensorOperations&query=total_requests&label=Downloads
2828
[downloads-url]: http://juliapkgstats.com/pkg/TensorOperations
2929

30-
[ci-img]: https://github.com/Jutho/TensorOperations.jl/workflows/CI/badge.svg
30+
[ci-img]: https://github.com/QuantumKitHub/TensorOperations.jl/workflows/CI/badge.svg
3131
[ci-url]:
32-
https://github.com/Jutho/TensorOperations.jl/actions?query=workflow%3ACI
32+
https://github.com/QuantumKitHub/TensorOperations.jl/actions?query=workflow%3ACI
3333

3434
[pkgeval-img]: https://JuliaCI.github.io/NanosoldierReports/pkgeval_badges/T/TensorOperations.svg
3535
[pkgeval-url]: https://JuliaCI.github.io/NanosoldierReports/pkgeval_badges/T/TensorOperations.html
3636

3737
[codecov-img]:
38-
https://codecov.io/gh/Jutho/TensorOperations.jl/branch/master/graph/badge.svg
39-
[codecov-url]: https://codecov.io/gh/Jutho/TensorOperations.jl
38+
https://codecov.io/gh/QuantumKitHub/TensorOperations.jl/branch/master/graph/badge.svg
39+
[codecov-url]: https://codecov.io/gh/QuantumKitHub/TensorOperations.jl
4040

4141
[aqua-img]: https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg
4242
[aqua-url]: https://github.com/JuliaTesting/Aqua.jl

test/runtests.jl

Lines changed: 42 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -8,42 +8,52 @@ using TensorOperations: IndexError
88
using TensorOperations: BaseCopy, BaseView, StridedNative, StridedBLAS
99
using 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
3434
end
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
4042
end
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
4959
end

0 commit comments

Comments
 (0)