Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
beff5f2
Revert "Temporarily remove Enzyme support (#824)"
vchuravy Oct 3, 2026
6998119
Add Enzyme as a normal test dependency
vchuravy Mar 12, 2025
eccc2e3
treat Enzyme more as a normal dependency
vchuravy Mar 12, 2025
6d652e1
remove special handling of CPU
vchuravy Mar 12, 2025
3eb4020
Support POCL in Enzyme
vchuravy Jul 10, 2026
fccc0e8
Revert "Disable Enzyme support for now"
vchuravy Jul 20, 2026
18201c1
Drop leftover `Kernel{<:GPU}` restriction in EnzymeCore08Ext
vchuravy Oct 3, 2026
93a65b7
Make `Active kernel arguments not supported` error message more specific
SouthEndMusic Oct 3, 2026
cf643b0
Merge branch 'main' into revert-824-vc/remove-enzyme
vchuravy Nov 16, 2026
5903e3d
EnzymeExt: support type arguments and strong zero in forward-mode ker…
vchuravy Oct 11, 2026
970988e
EnzymeExt: pass strong zero on to reverse-mode kernels (#975)
vchuravy Nov 13, 2026
8517783
EnzymeExt: adapt to the launch path of KernelAbstractions 0.10
vchuravy Nov 16, 2026
8da0417
POCL: mark the SPIR-V built-ins as `nofree`
vchuravy Nov 16, 2026
f10b587
Test with Enzyme from EnzymeAD/Enzyme.jl#3741
vchuravy Nov 16, 2026
0cdd436
EnzymeExt: drop support for EnzymeCore 0.7
vchuravy Nov 16, 2026
9b72f3f
Handle missing ndrange in Enzyme reverse mode (#925)
bgroenks96 Nov 16, 2026
27e2dc3
Merge branch 'main' into revert-824-vc/remove-enzyme
vchuravy Nov 17, 2026
3edce0f
Test against the released Enzyme 0.13.221
vchuravy Nov 17, 2026
9054cb5
[CI] Test the Enzyme extension on CUDA and AMDGPU
vchuravy Nov 17, 2026
4c71603
Let enzyme_testsuite take the element type of the arrays
vchuravy Nov 18, 2026
ad06ed5
[CI] Test the Enzyme extension on oneAPI
vchuravy Nov 18, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
172 changes: 171 additions & 1 deletion .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# pull requests skip them, unless selected by name in the last commit message: `[only cuda]`,
# `[only metal, oneapi]`, `[only tests]` for all tests, or `[only benchmarks]`. `[skip amdgpu]`
# or `[skip tests]` does the opposite. (`opencl` selects the OpenCL.jl tests, on PoCL and on
# CUDA hardware.)
# CUDA hardware; `enzyme` selects the tests of the Enzyme extension on the back ends.)
#
# Pull requests only test the oldest and newest supported Julia release; the releases in
# between are tested on branch builds, or on pull requests when selected with `[only julia]`
Expand Down Expand Up @@ -61,6 +61,119 @@ steps:
(build.message =~ /\[only [^\]]*(tests|cuda|julia)/ ||
build.message !~ /\[only / && build.pull_request.id == null)

# The Enzyme extension on the GPU back ends, whose own test suites don't run
# test/extensions/enzyme.jl. The back ends implement `EnzymeCore.compiler_job_from_backend`.
- &cuda_enzyme
label: "CUDA Enzyme Julia {{matrix.version}}"
matrix:
setup:
version:
- "1.10"
- "1.13"
plugins:
- JuliaCI/julia#v1:
version: "{{matrix.version}}"
- JuliaCI/julia-coverage#v1:
codecov: true
command: |
julia -e 'println("--- :julia: Instantiating project")
using Pkg
Pkg.develop([PackageSpec(; name="KernelAbstractions", path=pwd()),
PackageSpec(; name="KernelInterface", path=joinpath(pwd(), "lib", "KernelInterface"))])' || exit 3
echo "--- :julia: Developing CUDA"
julia .buildkite/develop_backend.jl https://github.com/JuliaGPU/CUDA.jl main \
CUDACore CUDATools lib/cusolver lib/curand lib/cublas lib/cufft lib/cusparse lib/cupti lib/nvml lib/custatevec lib/cudnn lib/cutensor lib/cutensornet || exit 3
julia -e 'println("--- :julia: Adding Enzyme")
using Pkg
Pkg.add(["Enzyme", "Test"])' || exit 3

julia --code-coverage=@$(pwd) -e 'println("+++ :julia: Running tests")
include(joinpath(".buildkite", "check_sources.jl"))
using CUDA
include(joinpath("test", "extensions", "enzyme.jl"))
@testset "Enzyme" begin
enzyme_testsuite(CUDABackend, CuArray, true)
end'
agents:
queue: "cuda"
if: |
build.message !~ /\[skip [^\]]*(tests|cuda|enzyme)/ &&
(build.message =~ /\[only [^\]]*(tests|cuda|enzyme)/ ||
build.message !~ /\[only / && !build.pull_request.draft)
timeout_in_minutes: 120
soft_fail:
- exit_status: 3
env:
JULIA_PROJECT: "@cuda_enzyme"

# intermediate releases, not tested on pull requests
- <<: *cuda_enzyme
matrix:
setup:
version:
- "1.11"
- "1.12"
if: |
build.message !~ /\[skip [^\]]*(tests|cuda|enzyme|julia)/ &&
(build.message =~ /\[only [^\]]*(tests|cuda|enzyme|julia)/ ||
build.message !~ /\[only / && build.pull_request.id == null)

- &amdgpu_enzyme
label: "AMDGPU Enzyme Julia {{matrix.version}}"
matrix:
setup:
version:
- "1.10"
- "1.13"
plugins:
- JuliaCI/julia#v1:
version: "{{matrix.version}}"
- JuliaCI/julia-coverage#v1:
codecov: true
command: |
julia -e 'println("--- :julia: Instantiating project")
using Pkg
Pkg.develop([PackageSpec(; name="KernelAbstractions", path=pwd()),
PackageSpec(; name="KernelInterface", path=joinpath(pwd(), "lib", "KernelInterface"))])' || exit 3
julia -e 'println("--- :julia: Developing AMDGPU")
using Pkg
Pkg.add(url="https://github.com/JuliaGPU/AcceleratedKernels.jl", rev="main")' || exit 3
julia .buildkite/develop_backend.jl https://github.com/JuliaGPU/AMDGPU.jl main || exit 3
julia -e 'println("--- :julia: Adding Enzyme")
using Pkg
Pkg.add(["Enzyme", "Test"])' || exit 3

julia --code-coverage=@$(pwd) -e 'println("+++ :julia: Running tests")
include(joinpath(".buildkite", "check_sources.jl"))
using AMDGPU
include(joinpath("test", "extensions", "enzyme.jl"))
@testset "Enzyme" begin
enzyme_testsuite(ROCBackend, ROCArray, true)
end'
agents:
queue: "rocm"
if: |
build.message !~ /\[skip [^\]]*(tests|amdgpu|enzyme)/ &&
(build.message =~ /\[only [^\]]*(tests|amdgpu|enzyme)/ ||
build.message !~ /\[only / && !build.pull_request.draft)
timeout_in_minutes: 120
soft_fail:
- exit_status: 3
env:
JULIA_PROJECT: "@amdgpu_enzyme"

# intermediate releases, not tested on pull requests
- <<: *amdgpu_enzyme
matrix:
setup:
version:
- "1.11"
- "1.12"
if: |
build.message !~ /\[skip [^\]]*(tests|amdgpu|enzyme|julia)/ &&
(build.message =~ /\[only [^\]]*(tests|amdgpu|enzyme|julia)/ ||
build.message !~ /\[only / && build.pull_request.id == null)

- &metal
label: "Metal Julia {{matrix.version}}"
matrix:
Expand Down Expand Up @@ -158,6 +271,63 @@ steps:
(build.message =~ /\[only [^\]]*(tests|oneapi|julia)/ ||
build.message !~ /\[only / && build.pull_request.id == null)

- &oneapi_enzyme
label: "oneAPI Enzyme Julia {{matrix.version}}"
matrix:
setup:
version:
- "1.10"
- "1.13"
plugins:
- JuliaCI/julia#v1:
version: "{{matrix.version}}"
- JuliaCI/julia-coverage#v1:
codecov: true
command: |
julia -e 'println("--- :julia: Instantiating project")
using Pkg
Pkg.develop([PackageSpec(; name="KernelAbstractions", path=pwd()),
PackageSpec(; name="KernelInterface", path=joinpath(pwd(), "lib", "KernelInterface"))])' || exit 3
julia -e 'println("--- :julia: Developing oneAPI")
using Pkg
Pkg.add(url="https://github.com/JuliaGPU/AcceleratedKernels.jl", rev="main")' || exit 3
julia .buildkite/develop_backend.jl https://github.com/JuliaGPU/oneAPI.jl main || exit 3
julia -e 'println("--- :julia: Adding Enzyme")
using Pkg
Pkg.add(["Enzyme", "Test"])' || exit 3

julia --code-coverage=@$(pwd) -e 'println("+++ :julia: Running tests")
include(joinpath(".buildkite", "check_sources.jl"))
using oneAPI
include(joinpath("test", "extensions", "enzyme.jl"))
@testset "Enzyme" begin
T = KernelAbstractions.supports_float64(oneAPIBackend()) ? Float64 : Float32
enzyme_testsuite(oneAPIBackend, oneArray, true, T)
end'
agents:
queue: "oneapi"
if: |
build.message !~ /\[skip [^\]]*(tests|oneapi|enzyme)/ &&
(build.message =~ /\[only [^\]]*(tests|oneapi|enzyme)/ ||
build.message !~ /\[only / && !build.pull_request.draft)
timeout_in_minutes: 120
soft_fail:
- exit_status: 3
env:
JULIA_PROJECT: "@oneapi_enzyme"

# intermediate releases, not tested on pull requests
- <<: *oneapi_enzyme
matrix:
setup:
version:
- "1.11"
- "1.12"
if: |
build.message !~ /\[skip [^\]]*(tests|oneapi|enzyme|julia)/ &&
(build.message =~ /\[only [^\]]*(tests|oneapi|enzyme|julia)/ ||
build.message !~ /\[only / && build.pull_request.id == null)

- &amdgpu
label: "AMDGPU Julia {{matrix.version}}"
matrix:
Expand Down
4 changes: 4 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ pocl_standalone_jll = "54f56a70-6062-5590-a942-1226658f6c83"

[weakdeps]
AMDGPU = "21141c5a-9bdb-4563-92ae-f87d6854732e"
EnzymeCore = "f151be2c-9106-41f4-ab19-57ee4f262869"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Metal = "dde4c033-4e86-420c-a63e-0dd931031962"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
Expand All @@ -40,6 +41,7 @@ KernelInterface = {path = "lib/KernelInterface"}

[extensions]
AMDGPUExt = "AMDGPU"
EnzymeExt = "EnzymeCore"
LinearAlgebraExt = "LinearAlgebra"
MetalExt = "Metal"
SparseArraysExt = "SparseArrays"
Expand All @@ -50,6 +52,7 @@ oneAPIExt = "oneAPI"
AMDGPU = "2"
Adapt = "0.4, 1.0, 2.0, 3.0, 4"
Atomix = "1.5"
EnzymeCore = "0.8.25"
GPUCompiler = "2.20"
GPUToolbox = "3.6"
KernelInterface = "0.4"
Expand All @@ -75,5 +78,6 @@ oneAPI = "2"
pocl_standalone_jll = "7.2.3"

[extras]
EnzymeCore = "f151be2c-9106-41f4-ab19-57ee4f262869"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
Loading
Loading