Skip to content

Commit dd55aa8

Browse files
authored
fix missing allocator in tensorfree (#197)
1 parent 0135c8f commit dd55aa8

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
- x64
6767
steps:
6868
- uses: actions/checkout@v4
69-
- uses: julia-actions/setup-julia@v1
69+
- uses: julia-actions/setup-julia@v2
7070
with:
7171
version: ${{ matrix.version }}
7272
arch: ${{ matrix.arch }}

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "TensorOperations"
22
uuid = "6aa20fa7-93e2-5fca-9bc0-fbd0db3c71a2"
33
authors = ["Lukas Devos <[email protected]>", "Maarten Van Damme <[email protected]>", "Jutho Haegeman <[email protected]>"]
4-
version = "5.1.1"
4+
version = "5.1.2"
55

66
[deps]
77
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"

src/indexnotation/postprocessors.jl

+3-2
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,11 @@ end
9898
insertallocator(ex, allocator)
9999
100100
Insert the allocator argument into the tensor operation and allocation methods `tensoradd!`,
101-
`tensortrace!`, `tensorcontract!`, `tensoralloc`, `tensoralloc_add`, and `tensoralloc_contract`.
101+
`tensortrace!`, `tensorcontract!`, `tensoralloc`, `tensoralloc_add`, `tensoralloc_contract`
102+
and `tensorfree!`.
102103
"""
103104
function insertallocator(ex, allocator)
104105
return insertargument(ex, allocator,
105106
(:tensoradd!, :tensortrace!, :tensorcontract!, :tensoralloc,
106-
:tensoralloc_add, :tensoralloc_contract))
107+
:tensoralloc_add, :tensoralloc_contract, :tensorfree!))
107108
end

0 commit comments

Comments
 (0)