From 8f2bdf6f68fd3213c7b863abe734a3ea6c716cac Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Thu, 1 Aug 2024 17:26:15 -0400 Subject: [PATCH 1/4] add Enzyme to "extras" for testing, docs --- Project.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index 016275a..c18fb59 100644 --- a/Project.toml +++ b/Project.toml @@ -15,10 +15,11 @@ QuadGKEnzymeExt = "Enzyme" [compat] DataStructures = "0.11, 0.12, 0.13, 0.14, 0.15, 0.16, 0.17, 0.18, 0.19" Enzyme = "0.12" -julia = "1.2" +julia = "1.6" [extras] Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" +Enzyme = "7da242da-08ed-463a-9acd-ee780be4f1d9" [targets] -test = ["Test"] +test = ["Test", "Enzyme"] From 6d872af477a691b36e33c51eb2cc64d8854f6031 Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Thu, 1 Aug 2024 17:28:58 -0400 Subject: [PATCH 2/4] add LinearAlgebra version compat --- Project.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Project.toml b/Project.toml index c18fb59..b8b5002 100644 --- a/Project.toml +++ b/Project.toml @@ -14,6 +14,7 @@ QuadGKEnzymeExt = "Enzyme" [compat] DataStructures = "0.11, 0.12, 0.13, 0.14, 0.15, 0.16, 0.17, 0.18, 0.19" +LinearAlgebra = "<0.0.1, 1" Enzyme = "0.12" julia = "1.6" From b25ea1b7f61037feb20173d9853eaf43a1c21169 Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Thu, 1 Aug 2024 17:33:11 -0400 Subject: [PATCH 3/4] Update CI.yml: add julia 1.6 --- .github/workflows/CI.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index b62607d..9284071 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -22,6 +22,7 @@ jobs: fail-fast: false matrix: version: + - '1.6' - '1.9' - '1' # - 'nightly' From 77c211b4bd8b87373b2a12cdec7226984ac66e01 Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Thu, 1 Aug 2024 20:01:22 -0400 Subject: [PATCH 4/4] disable to_segbuf inference test for versions before 1.9 --- test/runtests.jl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index 3e0bfee..baaeb5a 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -439,9 +439,12 @@ quadgk_segbuf_printnull(args...; kws...) = quadgk_segbuf_print(devnull, args...; @test E3 ≈ E3′ rtol=1e-15 @test count3′ == length(segbuf3) * 15 - # type inference of to_segbuf for concrete types: - @inferred QuadGK.to_segbuf([0,1]) - @inferred QuadGK.to_segbuf([(0,1+3im)]) + # type inference of to_segbuf for concrete types + # (fails due to apparent Julia inference limitation for some older versions): + if VERSION >= v"1.9" + @inferred QuadGK.to_segbuf([0,1]) + @inferred QuadGK.to_segbuf([(0,1+3im)]) + end end # Extension package only supported in 1.9+