Skip to content

Commit 7e02724

Browse files
authored
Merge branch 'main' into matrixalgebra
2 parents 65d4ec2 + 02676d0 commit 7e02724

File tree

4 files changed

+98
-36
lines changed

4 files changed

+98
-36
lines changed

.buildkite/pipeline.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
env:
2+
SECRET_CODECOV_TOKEN: "IAcIDwEfSDEfjfVOQ5VI9apT8mLPcJDIRoZa+D0GvUB6HyEjemG+mZD8uzLbQ0OD7cokQyIO+XpuGCh6wzGCb1Ma2xnqXgTXAKLkMceVm/RVlA80vlo0kjeBjx1h2j2oQeXTsTIt+EWAeKgw3bgZ69vdATgG52JY/z9ia/OhJ7LFMMkEQvXXiKMp0AU5JC+nl/HHgLARb70qqCuPEdCPZa2LZzRfr4D02Rf3/UqAcPXj7KYzw0sxD8R+g6onvqmE2E3OkmpGPQgFXrGrYw9p+PUJqjeXSkZrC1pe1wDh8ge4YXJhHm44M+9XaPlK4IYGA0PJbfaFGMpIhN+5GJlauQ==;U2FsdGVkX1+F3w+O36dLAUvzVtMF7G+WAdqcL4pcsE/vtyTsjXZvpAv/iT1H32gNRNE9f7OjS9pke092rCDZpw=="
3+
4+
steps:
5+
- label: "Julia {{matrix.julia}} -- CUDA"
6+
plugins:
7+
- JuliaCI/julia#v1:
8+
version: "{{matrix.julia}}"
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+
matrix:
20+
setup:
21+
julia:
22+
- "1.10"
23+
- "1.11"
24+
25+
- label: "Julia {{matrix.julia}} -- AMDGPU"
26+
plugins:
27+
- JuliaCI/julia#v1:
28+
version: "{{matrix.julia}}"
29+
- JuliaCI/julia-test#v1: ~
30+
- JuliaCI/julia-coverage#v1:
31+
dirs:
32+
- src
33+
- ext
34+
agents:
35+
queue: "juliagpu"
36+
rocm: "*"
37+
rocmgpu: "*"
38+
if: build.message !~ /\[skip tests\]/
39+
timeout_in_minutes: 30
40+
matrix:
41+
setup:
42+
julia:
43+
- "1.10"
44+
- "1.11"

.github/workflows/CompatCheck.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ jobs:
2323
downgrade_mode: ['alldeps']
2424
julia-version: ['1.10', '1']
2525
steps:
26-
- uses: actions/checkout@v4
27-
- uses: julia-actions/setup-julia@v1
26+
- uses: actions/checkout@v5
27+
- uses: julia-actions/setup-julia@v2
2828
with:
2929
version: ${{ matrix.julia-version }}
3030
- uses: julia-actions/julia-downgrade-compat@v2

README.md

Lines changed: 13 additions & 13 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/TensorKit.jl/blob/master/docs/src/assets/logo-dark.svg">
3-
<img alt="TensorKit.jl logo" src="https://github.com/Jutho/TensorKit.jl/blob/master/docs/src/assets/logo.svg" width="150">
2+
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/QuantumKitHub/TensorKit.jl/blob/main/docs/src/assets/logo-dark.svg">
3+
<img alt="TensorKit.jl logo" src="https://github.com/QuantumKitHub/TensorKit.jl/blob/main/docs/src/assets/logo.svg" width="150">
44
</picture>
55

66
# TensorKit.jl
@@ -18,22 +18,22 @@ A Julia package for large-scale tensor computations, with a hint of category the
1818

1919

2020
[docs-stable-img]: https://img.shields.io/badge/docs-stable-blue.svg
21-
[docs-stable-url]: https://jutho.github.io/TensorKit.jl/stable
21+
[docs-stable-url]: https://QuantumKitHub.github.io/TensorKit.jl/stable
2222

2323
[docs-dev-img]: https://img.shields.io/badge/docs-dev-blue.svg
24-
[docs-dev-url]: https://jutho.github.io/TensorKit.jl/latest
24+
[docs-dev-url]: https://QuantumKitHub.github.io/TensorKit.jl/latest
2525

2626
[doi-img]: https://zenodo.org/badge/DOI/10.5281/zenodo.8421339.svg
2727
[doi-url]: https://doi.org/10.5281/zenodo.8421339
2828

2929
[downloads-img]: https://img.shields.io/badge/dynamic/json?url=http%3A%2F%2Fjuliapkgstats.com%2Fapi%2Fv1%2Ftotal_downloads%2FTensorKit&query=total_requests&label=Downloads
3030
[downloads-url]: http://juliapkgstats.com/pkg/TensorKit
3131

32-
[ci-img]: https://github.com/Jutho/TensorKit.jl/actions/workflows/CI.yml/badge.svg
33-
[ci-url]: https://github.com/Jutho/TensorKit.jl/actions/workflows/CI.yml
32+
[ci-img]: https://github.com/QuantumKitHub/TensorKit.jl/actions/workflows/CI.yml/badge.svg
33+
[ci-url]: https://github.com/QuantumKitHub/TensorKit.jl/actions/workflows/CI.yml
3434

35-
[codecov-img]: https://codecov.io/gh/Jutho/TensorKit.jl/branch/master/graph/badge.svg
36-
[codecov-url]: https://codecov.io/gh/Jutho/TensorKit.jl
35+
[codecov-img]: https://codecov.io/gh/QuantumKitHub/TensorKit.jl/branch/master/graph/badge.svg
36+
[codecov-url]: https://codecov.io/gh/QuantumKitHub/TensorKit.jl
3737

3838
[aqua-img]: https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg
3939
[aqua-url]: https://github.com/JuliaTesting/Aqua.jl
@@ -63,12 +63,12 @@ breaking changes:
6363
resides in a single array of type `<:DenseVector`. While this does not lead to breaking
6464
changes in the interface, it does mean that `TensorMap` objects from TensorKit.jl
6565
v0.12.7 or earlier that were saved to disk using e.g. JLD2.jl, cannot simply be read back
66-
in using the new version of TensorKit.jl. We provide a script [below](https://github.com/Jutho/TensorKit.jl?tab=readme-ov-file#transferring-tensormap-data-from-older-versions-to-v013)
66+
in using the new version of TensorKit.jl. We provide a script [below](https://github.com/QuantumKitHub/TensorKit.jl?tab=readme-ov-file#transferring-tensormap-data-from-older-versions-to-v013)
6767
to export data in a format that can be read back in by TensorKit.jl v0.13.
6868

6969
Major non-breaking changes include:
7070

71-
* Support for [TensorOperations.jl v5](https://github.com/Jutho/TensorOperations.jl), and
71+
* Support for [TensorOperations.jl v5](https://github.com/QuantumKitHub/TensorOperations.jl), and
7272
with this the new backend and allocator support within the `@tensor` macro.
7373
* The part of TensorKit.jl that defines the `Sector` type hierarchy and its corresponding
7474
interface, as well as the implementation of all of the standard symmetries, has been
@@ -149,8 +149,8 @@ Additionally, for libraries that implement tensor network algorithms on top of
149149
TensorKit.jl, check out [MPSKit.jl](https://github.com/QuantumKitHub/MPSKit.jl),
150150
[MERAKit.jl](https://github.com/mhauru/MERAKit.jl) and [PEPSKit.jl](https://github.com/QuantumKitHub/PEPSKit.jl).
151151

152-
Check out the [tutorial](https://jutho.github.io/TensorKit.jl/stable/man/tutorial/) and the
153-
full [documentation](https://jutho.github.io/TensorKit.jl/stable).
152+
Check out the [tutorial](https://QuantumKitHub.github.io/TensorKit.jl/stable/man/tutorial/) and the
153+
full [documentation](https://QuantumKitHub.github.io/TensorKit.jl/stable).
154154

155155
## Installation
156156

@@ -180,7 +180,7 @@ platforms with a 64-bit architecture.
180180

181181
Contributions are very welcome, as are feature requests and suggestions. Please open an [issue][issues-url] if you encounter any problems.
182182

183-
[issues-url]: https://github.com/Jutho/TensorKit.jl/issues
183+
[issues-url]: https://github.com/QuantumKitHub/TensorKit.jl/issues
184184

185185
## Acknowledgements
186186

test/runtests.jl

Lines changed: 39 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ const TK = TensorKit
1515

1616
Random.seed!(1234)
1717

18+
# don't run all tests on GPU, only the GPU
19+
# specific ones
20+
is_buildkite = get(ENV, "BUILDKITE", "false") == "true"
21+
1822
smallset(::Type{I}) where {I<:Sector} = take(values(I), 5)
1923
function smallset(::Type{ProductSector{Tuple{I1,I2}}}) where {I1,I2}
2024
iter = product(smallset(I1), smallset(I2))
@@ -112,25 +116,39 @@ VSU₂U₁ = (Vect[SU2Irrep ⊠ U1Irrep]((0, 0) => 1, (1 // 2, -1) => 1),
112116
# ℂ[SU3Irrep]((1, 0, 0) => 1, (2, 0, 0) => 1),
113117
# ℂ[SU3Irrep]((0, 0, 0) => 1, (1, 0, 0) => 1, (1, 1, 0) => 1)')
114118

115-
Ti = time()
116-
include("fusiontrees.jl")
117-
include("spaces.jl")
118-
include("tensors.jl")
119-
include("factorizations.jl")
120-
include("diagonal.jl")
121-
include("planar.jl")
122-
# TODO: remove once we know AD is slow on macOS CI
123-
if !(Sys.isapple() && get(ENV, "CI", "false") == "true") && isempty(VERSION.prerelease)
124-
include("ad.jl")
125-
end
126-
include("bugfixes.jl")
127-
Tf = time()
128-
printstyled("Finished all tests in ",
129-
string(round((Tf - Ti) / 60; sigdigits=3)),
130-
" minutes."; bold=true, color=Base.info_color())
131-
println()
132-
133-
@testset "Aqua" verbose = true begin
134-
using Aqua
135-
Aqua.test_all(TensorKit)
119+
if !is_buildkite
120+
Ti = time()
121+
include("fusiontrees.jl")
122+
include("spaces.jl")
123+
include("tensors.jl")
124+
include("factorizations.jl")
125+
include("diagonal.jl")
126+
include("planar.jl")
127+
# TODO: remove once we know AD is slow on macOS CI
128+
if !(Sys.isapple() && get(ENV, "CI", "false") == "true") && isempty(VERSION.prerelease)
129+
include("ad.jl")
130+
end
131+
include("bugfixes.jl")
132+
Tf = time()
133+
printstyled("Finished all tests in ",
134+
string(round((Tf - Ti) / 60; sigdigits=3)),
135+
" minutes."; bold=true, color=Base.info_color())
136+
println()
137+
@testset "Aqua" verbose = true begin
138+
using Aqua
139+
Aqua.test_all(TensorKit)
140+
end
141+
else
142+
Ti = time()
143+
#=using CUDA
144+
if CUDA.functional()
145+
end
146+
using AMDGPU
147+
if AMDGPU.functional()
148+
end=#
149+
Tf = time()
150+
printstyled("Finished all GPU tests in ",
151+
string(round((Tf - Ti) / 60; sigdigits=3)),
152+
" minutes."; bold=true, color=Base.info_color())
153+
println()
136154
end

0 commit comments

Comments
 (0)