Skip to content

Commit

Permalink
GTPSA uses GTPSA_jll to compile shared library
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsignorelli committed Dec 13, 2023
1 parent 3283b1a commit 6cef32b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ authors = ["Matt Signorelli"]
version = "1.0.0-DEV"

[deps]
GTPSA_jll = "a4739e29-4b97-5c0b-bbcf-46f08034c990"

[compat]
julia = "1"
Expand Down
5 changes: 2 additions & 3 deletions benchmark/fodo.jl
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
include("../src/GTPSA.jl")
using .GTPSA
using GTPSA
using ForwardDiff

using BenchmarkTools


# Comparison of ForwardDiff with GTPSA for 4 variables to 2nd order and 2 knobs to 2nd order
# As of 11/08/2023, ForwardDiff gives ~19 ms and GTPSA ~7.5 ms
# As of 12/14/2023, GTPSA: 4.381 ms (82115 allocations: 2.48 MiB), ForwardDiff: 19.093 ms (487498 allocations: 49.65 MiB)

function track_qf(z0, k1)
L = 0.5
Expand Down
2 changes: 2 additions & 0 deletions src/GTPSA.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ import Base: *,
lastindex,
setindex!

using GTPSA_jll

export
# Constants:
NAMSZ,
Expand Down

0 comments on commit 6cef32b

Please sign in to comment.