From e4f5e62e8b1d19bff7971f456d3437876ca18b2e Mon Sep 17 00:00:00 2001 From: Jutho Haegeman Date: Tue, 1 Jul 2025 15:38:18 +0200 Subject: [PATCH 1/3] small fix --- src/spaces/homspace.jl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/spaces/homspace.jl b/src/spaces/homspace.jl index a6ae2bc1c..bdb534663 100644 --- a/src/spaces/homspace.jl +++ b/src/spaces/homspace.jl @@ -313,7 +313,10 @@ end function _subblock_strides(subsz, sz, str) sz_simplify = Strided.StridedViews._simplifydims(sz, str) - return Strided.StridedViews._computereshapestrides(subsz, sz_simplify...) + strides = Strided.StridedViews._computereshapestrides(subsz, sz_simplify...) + isnothing(strides) && + throw(ArgumentError("unexpected error in computing subblock strides")) + return strides end function CacheStyle(::typeof(fusionblockstructure), W::HomSpace) From 8fc284be1a7672f509af8e00c15faa27eaa2acc9 Mon Sep 17 00:00:00 2001 From: Jutho Haegeman Date: Wed, 2 Jul 2025 02:30:35 +0200 Subject: [PATCH 2/3] try to work around AD bug --- test/ad.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/ad.jl b/test/ad.jl index e5e2d884d..9cb514ef1 100644 --- a/test/ad.jl +++ b/test/ad.jl @@ -105,7 +105,9 @@ end # Tests # ----- -ChainRulesTestUtils.test_method_tables() +if VERSION <= v"1.11.5" + ChainRulesTestUtils.test_method_tables() +end Vlist = ((ℂ^2, (ℂ^3)', ℂ^3, ℂ^2, (ℂ^2)'), (ℂ[Z2Irrep](0 => 1, 1 => 1), From 32abaf877594050a5d16843e243b274bd64259a7 Mon Sep 17 00:00:00 2001 From: Jutho Haegeman Date: Thu, 3 Jul 2025 23:02:05 +0200 Subject: [PATCH 3/3] disable AD tests on nightly alltogether --- test/ad.jl | 4 +--- test/runtests.jl | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/test/ad.jl b/test/ad.jl index 9cb514ef1..e5e2d884d 100644 --- a/test/ad.jl +++ b/test/ad.jl @@ -105,9 +105,7 @@ end # Tests # ----- -if VERSION <= v"1.11.5" - ChainRulesTestUtils.test_method_tables() -end +ChainRulesTestUtils.test_method_tables() Vlist = ((ℂ^2, (ℂ^3)', ℂ^3, ℂ^2, (ℂ^2)'), (ℂ[Z2Irrep](0 => 1, 1 => 1), diff --git a/test/runtests.jl b/test/runtests.jl index 2e716fa18..84b4abd79 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -113,7 +113,7 @@ include("tensors.jl") include("diagonal.jl") include("planar.jl") # TODO: remove once we know AD is slow on macOS CI -if !(Sys.isapple() && get(ENV, "CI", "false") == "true") +if !(Sys.isapple() && get(ENV, "CI", "false") == "true") && isempty(VERSION.prerelease) include("ad.jl") end include("bugfixes.jl")