Skip to content

Commit e52785e

Browse files
authored
Merge pull request #828
Add Julia 1.11 Enzyme job to pipeline
2 parents 02711ff + e82aa81 commit e52785e

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

.buildkite/pipeline.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,25 @@ steps:
111111
JULIA_AMDGPU_CORE_MUST_LOAD: "1"
112112
JULIA_AMDGPU_HIP_MUST_LOAD: "1"
113113
JULIA_AMDGPU_DISABLE_ARTIFACTS: "1"
114-
soft_fail: true
114+
115+
- label: "Julia 1.11 Enzyme"
116+
plugins:
117+
- JuliaCI/julia#v1:
118+
version: "1.11"
119+
- JuliaCI/julia-test#v1:
120+
test_args: "enzyme"
121+
agents:
122+
queue: "juliagpu"
123+
rocm: "*"
124+
rocmgpu: "*"
125+
if: build.message !~ /\[skip tests\]/
126+
command: "julia --project -e 'using Pkg; Pkg.update()'"
127+
timeout_in_minutes: 30
128+
env:
129+
JULIA_NUM_THREADS: 4
130+
JULIA_AMDGPU_CORE_MUST_LOAD: "1"
131+
JULIA_AMDGPU_HIP_MUST_LOAD: "1"
132+
JULIA_AMDGPU_DISABLE_ARTIFACTS: "1"
115133

116134
- label: "GPU-less environment"
117135
plugins:

ext/AMDGPUEnzymeCoreExt/AMDGPUEnzymeCoreExt.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ function EnzymeCore.compiler_job_from_backend(
1414
return GPUCompiler.CompilerJob(mi, AMDGPU.compiler_config(AMDGPU.device()))
1515
end
1616

17+
function EnzymeRules.forward(
18+
config, fn::Const{typeof(AMDGPU.hipfunction)}, ::Type{<: Const},
19+
f::Const{F}, tt::Const{TT}; kwargs...,
20+
) where {F, TT}
21+
res = fn.val(f.val, tt.val; kwargs...)
22+
return res
23+
end
24+
1725
function EnzymeRules.forward(
1826
config, fn::Const{typeof(AMDGPU.hipfunction)}, ::Type{<: Duplicated},
1927
f::Const{F}, tt::Const{TT}; kwargs...,

0 commit comments

Comments
 (0)