Skip to content

Commit dd3044a

Browse files
authored
[CI] Only run Enzyme on v1.10+ (#535)
1 parent 27ded01 commit dd3044a

File tree

4 files changed

+23
-7
lines changed

4 files changed

+23
-7
lines changed

.buildkite/pipeline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ steps:
4141
julia -e 'println("--- :julia: Instantiating project")
4242
using Pkg
4343
try
44-
Pkg.develop([PackageSpec(; path=pwd()), PackageSpec("Enzyme"), PackageSpec("CUDA")])
44+
Pkg.develop([PackageSpec(; path=pwd()), PackageSpec("Enzyme"), PackageSpec("EnzymeCore"), PackageSpec("CUDA")])
4545
catch err
4646
Pkg.develop(; path=pwd())
4747
Pkg.add(["CUDA", "Enzyme"])

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,26 @@ jobs:
4747
arch: ${{ matrix.arch }}
4848
show-versioninfo: true
4949
- uses: julia-actions/cache@v2
50+
- run: |
51+
julia -e '@static if VERSION >= v"1.10"
52+
using Pkg
53+
withenv("JULIA_PKG_PRECOMPILE_AUTO" => 0) do
54+
Pkg.activate("test")
55+
Pkg.add(["Enzyme", "EnzymeCore"])
56+
57+
# to check compatibility, also add Enzyme to the main environment
58+
# (or Pkg.test, which merges both environments, could fail)
59+
Pkg.activate(".")
60+
# Try to co-develop Enzyme and KA
61+
try
62+
Pkg.develop([PackageSpec("Enzyme"), PackageSpec("EnzymeCore")])
63+
catch err
64+
@error "Could not install Enzyme" exception=(err,catch_backtrace())
65+
exit(3)
66+
end
67+
end
68+
end
69+
'
5070
- uses: julia-actions/julia-buildpkg@v1
5171
- uses: julia-actions/julia-runtest@v1
5272
with:

test/Project.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
[deps]
22
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
3-
Enzyme = "7da242da-08ed-463a-9acd-ee780be4f1d9"
43
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
54
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
65
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
76
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
87
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
98
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
109
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
11-
12-
[compat]
13-
Enzyme = "0.13"

test/runtests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ struct NewBackend <: KernelAbstractions.GPU end
7272
@test_throws MethodError kernel()
7373
end
7474

75-
include("extensions/enzyme.jl")
76-
@static if VERSION >= v"1.7.0"
75+
@static if VERSION >= v"1.10.0"
76+
include("extensions/enzyme.jl")
7777
@testset "Enzyme" begin
7878
enzyme_testsuite(CPU, Array)
7979
end

0 commit comments

Comments
 (0)