Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ jobs:
fail-fast: false
matrix:
version:
- '1.6'
- '1.10'
- '1.12'
os:
- ubuntu-latest
- macOS-latest
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "SHTns"
uuid = "5dc4ea12-f621-4038-8458-a22eae100703"
authors = ["Felix Gerick"]
version = "0.3.0"
authors = ["Felix Gerick"]

[deps]
SHTns_jll = "daf09cc5-9ab3-509e-9618-0b89086eb825"
Expand Down
1 change: 1 addition & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[deps]
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
12 changes: 8 additions & 4 deletions test/julia_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,19 @@


#test no-allocations
@test (@allocated SHTns.synth!(cfg,x,y)) == 0
@test (@allocated SHTns.analys!(cfg,y,x)) == 0
b = @benchmark SHTns.synth!($cfg,$x,$y)
@test b.memory == 0
b = @benchmark SHTns.analys!($cfg,$y,$x)
@test b.memory == 0

y = complex(y)
cfg = SHTnsCfg(L; transform=Complex)
x = SHTns.analys(cfg, y)

@test (@allocated SHTns.analys!(cfg,y,x)) == 0
@test (@allocated SHTns.synth!(cfg,x,y)) == 0
b = @benchmark SHTns.analys!($cfg,$y,$x)
@test b.memory == 0
b = @benchmark SHTns.synth!($cfg,$x,$y)
@test b.memory == 0

end

Expand Down
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using SHTns
using Test
using LinearAlgebra
using BenchmarkTools

@testset "init threads" begin

Expand Down
Loading