From 2da3b048e656efa9ad451dc843b34a9de5465571 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 12 Aug 2024 15:51:03 +0200 Subject: [PATCH 1/3] CompatHelper: bump compat for Bumper in [weakdeps] to 0.7, (keep existing compat) (#184) Co-authored-by: CompatHelper Julia --- Project.toml | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/Project.toml b/Project.toml index 8c8d281..ba0bf14 100644 --- a/Project.toml +++ b/Project.toml @@ -1,10 +1,6 @@ name = "TensorOperations" uuid = "6aa20fa7-93e2-5fca-9bc0-fbd0db3c71a2" -authors = [ - "Lukas Devos ", - "Maarten Van Damme ", - "Jutho Haegeman ", -] +authors = ["Lukas Devos ", "Maarten Van Damme ", "Jutho Haegeman "] version = "5.0.0" [deps] @@ -33,7 +29,7 @@ TensorOperationscuTENSORExt = ["cuTENSOR", "CUDA"] [compat] Aqua = "0.6, 0.7, 0.8" -Bumper = "0.6" +Bumper = "0.6, 0.7" CUDA = "5.4.0" ChainRulesCore = "1" ChainRulesTestUtils = "1" @@ -64,14 +60,4 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" cuTENSOR = "011b41b2-24ef-40a8-b3eb-fa098493e9e1" [targets] -test = [ - "Test", - "Random", - "DynamicPolynomials", - "ChainRulesTestUtils", - "CUDA", - "cuTENSOR", - "Aqua", - "Logging", - "Bumper", -] +test = ["Test", "Random", "DynamicPolynomials", "ChainRulesTestUtils", "CUDA", "cuTENSOR", "Aqua", "Logging", "Bumper"] From 78059aae15a16602ef26c19c2c843a3390d42c41 Mon Sep 17 00:00:00 2001 From: Lukas <37111893+lkdvos@users.noreply.github.com> Date: Wed, 18 Sep 2024 07:22:02 +0200 Subject: [PATCH 2/3] Bump version v5.0.1 --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index ba0bf14..37dc1f7 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "TensorOperations" uuid = "6aa20fa7-93e2-5fca-9bc0-fbd0db3c71a2" authors = ["Lukas Devos ", "Maarten Van Damme ", "Jutho Haegeman "] -version = "5.0.0" +version = "5.0.1" [deps] CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba" From c1e37eca9c2d1ab468ddd1beb2ffb9eb0993bb4b Mon Sep 17 00:00:00 2001 From: Lander Burgelman <39218680+leburgel@users.noreply.github.com> Date: Wed, 2 Oct 2024 14:57:05 -0700 Subject: [PATCH 3/3] Fix typo in `tensoralloc` for Bumper allocator (#188) * Fix typo(?) in `tensoralloc` for Bumper allocator * Change fix to reflect original intention --------- Co-authored-by: leburgel --- ext/TensorOperationsBumperExt.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/TensorOperationsBumperExt.jl b/ext/TensorOperationsBumperExt.jl index 44c3719..0b0a1ac 100644 --- a/ext/TensorOperationsBumperExt.jl +++ b/ext/TensorOperationsBumperExt.jl @@ -7,7 +7,7 @@ function TensorOperations.tensoralloc(::Type{A}, structure, ::Val{istemp}, buf::Union{SlabBuffer,AllocBuffer}) where {A<:AbstractArray, istemp} # TODO: remove the `ndims` check if this is fixed in Bumper / StrideArraysCore - if istemp & ndims(A) > 0 + if istemp && ndims(A) > 0 return Bumper.alloc!(buf, eltype(A), structure...) else return TensorOperations.tensoralloc(A, structure, Val(istemp))