Skip to content

Commit

Permalink
only 1.10 allocations testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsignorelli committed Sep 15, 2024
1 parent 52453e9 commit 39ffaed
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1510,7 +1510,9 @@ end
@test_opt benchmark_GTPSA3()
end


# allocations only works on 1.10
# maybe 1.9 includes the macro call allocations?
if VERSION > v"1.9"

@testset "FastGTPSA - Allocations" begin
d = Descriptor(1, 5)
Expand Down Expand Up @@ -2142,7 +2144,7 @@ end

@test GTPSA.checktemps()
end

end

@testset "FastGTPSA - Broadcasting" begin
d = Descriptor(1, 5)
Expand Down Expand Up @@ -5703,6 +5705,8 @@ end
@test GTPSA.checktemps()
end

if VERSION > v"1.9"

@testset "FastGTPSA - Broadcast allocations" begin
d = Descriptor(1,5)
w = [[ComplexTPS64()] for i in 1:248]
Expand Down Expand Up @@ -6195,6 +6199,8 @@ end
@test GTPSA.checktemps()
end

end

@testset "Taylor map benchmark against ForwardDiff" begin
include("../benchmark/track.jl")
map = benchmark_GTPSA2()
Expand Down

0 comments on commit 39ffaed

Please sign in to comment.