diff --git a/Project.toml b/Project.toml index 8429a9ae..c4c11529 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "TensorKit" uuid = "07d1fe3e-3e46-537d-9eac-e9e13d0d4cec" authors = ["Jutho Haegeman"] -version = "0.11.0" +version = "0.11.1" [deps] HalfIntegers = "f0d1745a-41c9-11e9-1dd9-e5d34d218721" diff --git a/src/tensors/indexmanipulations.jl b/src/tensors/indexmanipulations.jl index 7e80f938..7e3004ce 100644 --- a/src/tensors/indexmanipulations.jl +++ b/src/tensors/indexmanipulations.jl @@ -326,19 +326,19 @@ function _add_general_kernel!(tdst, tsrc, p, fusiontreetransform, α, β, backen elseif β != 1 tdst = scale!(tdst, β) end - + # TODO: implement multithreading for general symmetries # Currently disable multithreading for general symmetries, requires more testing and # possibly a different approach. Ideally, we'd loop over output blocks in parallel, to # avoid parallel writing, but this requires the inverse of the fusiontreetransform. - + for (f₁, f₂) in fusiontrees(tsrc) for ((f₁′, f₂′), coeff) in fusiontreetransform(f₁, f₂) TO.tensoradd!(tdst[f₁′, f₂′], p, tsrc[f₁, f₂], :N, α * coeff, true, backend...) end end - + # if Threads.nthreads() > 1 # Threads.@sync for s₁ in sectors(codomain(tsrc)), s₂ in sectors(domain(tsrc)) # _add_sectors!(tdst, tsrc, fusiontreemap, s₁, s₂, α, β, backend...) @@ -351,7 +351,7 @@ function _add_general_kernel!(tdst, tsrc, p, fusiontreetransform, α, β, backen # end # end # end - + return nothing end