Skip to content

Commit 3e768fc

Browse files
committed
Add compat entry for Enzyme
1 parent 95e07d1 commit 3e768fc

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
2222

2323
[compat]
2424
KernelAbstractions = "<0.9.30"
25-
julia = "1.6"
25+
Enzyme = "<0.13.35"

test/runtests.jl

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
using SafeTestsets
22
using Test
33

4-
const GROUP = get(ENV, "GROUP", "CPU")
4+
global CI_GROUP = get(ENV, "GROUP", "CPU")
55

66
@safetestset "Regression tests" include("./regression.jl")
77
@safetestset "Reinitialization tests" include("./reinit.jl")
88

99
#TODO: Curent throws warning for redefinition with the use of @testset multiple times. Migrate to TestItemRunners.jl
10-
@testset for GROUP in unique(("CPU", GROUP))
11-
@testset "$(GROUP) optimizers tests" include("./gpu.jl")
12-
@testset "$(GROUP) optimizers with constraints tests" include("./constraints.jl")
13-
@testset "$(GROUP) hybrid optimizers" include("./lbfgs.jl")
10+
@testset for BACKEND in unique(("CPU", CI_GROUP))
11+
global GROUP = BACKEND
12+
@testset "$(BACKEND) optimizers tests" include("./gpu.jl")
13+
@testset "$(BACKEND) optimizers with constraints tests" include("./constraints.jl")
14+
@testset "$(BACKEND) hybrid optimizers" include("./lbfgs.jl")
1415
end

test/utils.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
const GROUP = get(ENV, "GROUP", "CPU")
2-
const backend = if GROUP == "CUDA"
1+
global backend = if GROUP == "CUDA"
32
using CUDA
43
CUDA.CUDABackend()
54
elseif GROUP == "AMDGPU"

0 commit comments

Comments
 (0)