Skip to content

Commit de1b052

Browse files
authored
Add fallback for EnzymeCore.compiler_job_from_backend (#469)
* Add fallback for EnzymeCore.compiler_job_from_backend * fixup! Add fallback for EnzymeCore.compiler_job_from_backend * Update CI
1 parent a9c24ce commit de1b052

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

.buildkite/pipeline.yml

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ steps:
77
- "1.7"
88
- "1.8"
99
- "1.9"
10+
- "1.10"
1011
plugins:
1112
- JuliaCI/julia#v1:
1213
version: "{{matrix.version}}"
@@ -63,6 +64,7 @@ steps:
6364
version:
6465
- "1.8"
6566
- "1.9"
67+
- "1.10"
6668
plugins:
6769
- JuliaCI/julia#v1:
6870
version: "{{matrix.version}}"
@@ -91,6 +93,7 @@ steps:
9193
version:
9294
- "1.8"
9395
- "1.9"
96+
- "1.10"
9497
plugins:
9598
- JuliaCI/julia#v1:
9699
version: "{{matrix.version}}"

.github/workflows/ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
- '1.7'
2727
- '1.8'
2828
- '1.9'
29+
- '1.10'
2930
os:
3031
- ubuntu-latest
3132
- macOS-latest

Project.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ version = "0.9.18"
66
[deps]
77
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
88
Atomix = "a9b6321e-bd34-4604-b9c9-b65b8de01458"
9+
EnzymeCore = "f151be2c-9106-41f4-ab19-57ee4f262869"
910
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
1011
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1112
MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09"
@@ -20,7 +21,7 @@ UnsafeAtomicsLLVM = "d80eeb9a-aca5-4d75-85e5-170c8b632249"
2021
[compat]
2122
Adapt = "0.4, 1.0, 2.0, 3.0, 4"
2223
Atomix = "0.1"
23-
EnzymeCore = "0.7"
24+
EnzymeCore = "0.7.1"
2425
InteractiveUtils = "1.6"
2526
LinearAlgebra = "1.6"
2627
MacroTools = "0.5"

ext/EnzymeExt.jl

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ module EnzymeExt
66
using ..EnzymeCore
77
using ..EnzymeCore.EnzymeRules
88
end
9-
import KernelAbstractions: Kernel, StaticSize, launch_config, __groupsize, __groupindex, blocks, mkcontext, CompilerMetadata, CPU
9+
import KernelAbstractions: Kernel, StaticSize, launch_config, __groupsize, __groupindex, blocks, mkcontext, CompilerMetadata, CPU, Backend
10+
11+
function EnzymeCore.compiler_job_from_backend(b::Backend, @nospecialize(F::Type), @nospecialize(TT::Type))
12+
error("EnzymeCore.compiler_job_from_backend is not yet implemented for $(typeof(b)), please file an issue.")
13+
end
1014

1115
EnzymeRules.inactive(::Type{StaticSize}, x...) = nothing
1216

0 commit comments

Comments
 (0)