From 6cef32bbe424e622bdae6fa632f3ae8e84ccf2b7 Mon Sep 17 00:00:00 2001 From: Matt Signorelli Date: Wed, 13 Dec 2023 12:47:30 -0500 Subject: [PATCH] GTPSA uses GTPSA_jll to compile shared library --- Project.toml | 1 + benchmark/fodo.jl | 5 ++--- src/GTPSA.jl | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Project.toml b/Project.toml index 81d2c17f..e6284f06 100644 --- a/Project.toml +++ b/Project.toml @@ -4,6 +4,7 @@ authors = ["Matt Signorelli"] version = "1.0.0-DEV" [deps] +GTPSA_jll = "a4739e29-4b97-5c0b-bbcf-46f08034c990" [compat] julia = "1" diff --git a/benchmark/fodo.jl b/benchmark/fodo.jl index 3c788369..74acaff7 100644 --- a/benchmark/fodo.jl +++ b/benchmark/fodo.jl @@ -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 diff --git a/src/GTPSA.jl b/src/GTPSA.jl index e3155b69..1f0afab3 100644 --- a/src/GTPSA.jl +++ b/src/GTPSA.jl @@ -44,6 +44,8 @@ import Base: *, lastindex, setindex! +using GTPSA_jll + export # Constants: NAMSZ,