From 3c20a2cdd8ad3f579af92b6d7e5558acb4a7b36d Mon Sep 17 00:00:00 2001 From: CarloLucibello Date: Tue, 2 Dec 2025 19:45:50 +0100 Subject: [PATCH 1/5] pipeline --- .buildkite/pipeline.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 8e4efac5..351efaab 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -1,7 +1,8 @@ steps: - - label: ":julia: Julia {{matrix.julia}} + CUDA GPU" + - label: ":julia: CUDA GPU" command: - echo 'CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"' >> test/Project.toml + - echo 'cuDNN = "b5f81e59-8f1f-5cdf-9c11-5677f7941f2e"' >> test/Project.toml plugins: - JuliaCI/julia#v1: version: "{{matrix.julia}}" @@ -26,16 +27,17 @@ steps: setup: julia: - "1.10" + - "1" - "nightly" adjustments: - with: julia: "nightly" soft_fail: true - - label: ":julia: Julia 1 + AMD GPU" + - label: ":julia: AMD GPU" plugins: - JuliaCI/julia#v1: - version: "1.10" + version: "1" - JuliaCI/julia-test#v1: test_args: "--quickfail" - JuliaCI/julia-coverage#v1: From d6e782774ebc0c7dd4d1a4329cb16758ebe22e46 Mon Sep 17 00:00:00 2001 From: CarloLucibello Date: Tue, 2 Dec 2025 19:50:06 +0100 Subject: [PATCH 2/5] fix --- .buildkite/pipeline.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 351efaab..f9c8e5f4 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -2,7 +2,7 @@ steps: - label: ":julia: CUDA GPU" command: - echo 'CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"' >> test/Project.toml - - echo 'cuDNN = "b5f81e59-8f1f-5cdf-9c11-5677f7941f2e"' >> test/Project.toml + - echo 'cuDNN = "02a925ec-e4fe-4b08-9a7e-0d78e3d38ccd"' >> test/Project.toml plugins: - JuliaCI/julia#v1: version: "{{matrix.julia}}" @@ -35,6 +35,8 @@ steps: soft_fail: true - label: ":julia: AMD GPU" + command: + - echo 'AMDGPU = "21141c5a-9bdb-4563-92ae-f87d6854732e"' >> test/Project.toml plugins: - JuliaCI/julia#v1: version: "1" From b67847e720b498b2e3096ea90a477a908c195411 Mon Sep 17 00:00:00 2001 From: CarloLucibello Date: Tue, 2 Dec 2025 19:53:06 +0100 Subject: [PATCH 3/5] fixlabel --- .buildkite/pipeline.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index f9c8e5f4..6339c38f 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -1,5 +1,5 @@ steps: - - label: ":julia: CUDA GPU" + - label: ":julia: Julia {{matrix.julia}} - CUDA GPU" command: - echo 'CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"' >> test/Project.toml - echo 'cuDNN = "02a925ec-e4fe-4b08-9a7e-0d78e3d38ccd"' >> test/Project.toml @@ -34,7 +34,7 @@ steps: julia: "nightly" soft_fail: true - - label: ":julia: AMD GPU" + - label: ":julia: Julia {{matrix.julia}} - AMD GPU" command: - echo 'AMDGPU = "21141c5a-9bdb-4563-92ae-f87d6854732e"' >> test/Project.toml plugins: @@ -59,6 +59,17 @@ steps: NNLIB_TEST_AMDGPU: "true" NNLIB_TEST_CPU: "false" JULIA_NUM_THREADS: 4 + matrix: + setup: + julia: + # - "1.10" + - "1" + # - "nightly" + adjustments: + - with: + julia: "nightly" + soft_fail: true + - label: "Benchmarks" plugins: From 3e4fa0020020d6ae2601de5f1322bc993040a0bf Mon Sep 17 00:00:00 2001 From: CarloLucibello Date: Fri, 5 Dec 2025 11:35:00 +0100 Subject: [PATCH 4/5] fix 1.10 --- test/Project.toml | 25 +++++++++++++------------ test/conv.jl | 4 ++++ test/pooling.jl | 1 + test/testsuite/gather.jl | 1 + test/testsuite/scatter.jl | 1 + 5 files changed, 20 insertions(+), 12 deletions(-) diff --git a/test/Project.toml b/test/Project.toml index 5fccd84c..602e6a2a 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -1,25 +1,26 @@ [deps] -Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" -FiniteDifferences = "26cc04aa-876d-5657-8c51-4c34ba976000" -ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210" +Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e" +ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4" ChainRulesTestUtils = "cdddcdb0-9152-4a09-a978-84456f9df70a" Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" Enzyme = "7da242da-08ed-463a-9acd-ee780be4f1d9" EnzymeCore = "f151be2c-9106-41f4-ab19-57ee4f262869" EnzymeTestUtils = "12d8515a-0907-448a-8884-5fe00fdf1c5a" +FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341" +FiniteDifferences = "26cc04aa-876d-5657-8c51-4c34ba976000" +ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210" ImageTransformations = "02fcd773-0e25-5acc-982a-7f6622650795" Interpolations = "a98d9a8b-a2ab-59e6-89dd-64a1c18fca59" +KernelAbstractions = "63c18a36-062a-441e-b654-da1e3ab1ce7c" +LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" Logging = "56ddb016-857b-54e1-b83d-db4d58db5568" +NNlib = "872c559c-99b0-510c-b3b7-b6c96a88d5cd" +Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" +Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" ReverseDiff = "37e2e3b7-166d-5795-8a7a-e32c996b4267" +SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b" StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3" +Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" +Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" UnicodePlots = "b8865327-cd53-5732-bb35-84acbb429228" Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f" -Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" -Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" -KernelAbstractions = "63c18a36-062a-441e-b654-da1e3ab1ce7c" -Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e" -Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" -ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4" -LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" -FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341" -SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b" diff --git a/test/conv.jl b/test/conv.jl index cf323277..bc9365dd 100644 --- a/test/conv.jl +++ b/test/conv.jl @@ -925,6 +925,7 @@ end Tx in (EnzymeCore.Const, EnzymeCore.Duplicated, EnzymeCore.BatchDuplicated), Tw in (EnzymeCore.Const, EnzymeCore.Duplicated, EnzymeCore.BatchDuplicated) + Tret == EnzymeCore.Const && continue # ERROR EnzymeTestUtils.are_activities_compatible(Tret, Tdst, Tx, Tw) || continue EnzymeTestUtils.test_reverse(curconv!, Tret, (dst, Tdst), (x, Tx), (w, Tw), (cdims, EnzymeCore.Const)) @@ -947,6 +948,7 @@ end Ty in (EnzymeCore.Const, EnzymeCore.Duplicated, EnzymeCore.BatchDuplicated), Tw in (EnzymeCore.Const, EnzymeCore.Duplicated, EnzymeCore.BatchDuplicated) + Tret == EnzymeCore.Const && continue # ERROR EnzymeTestUtils.are_activities_compatible(Tret, Tdst, Tx, Tw) || continue EnzymeTestUtils.test_reverse(curconv!, Tret, (dst, Tdst), (y, Ty), (w, Tw), (cdims, EnzymeCore.Const)) @@ -969,6 +971,7 @@ end Tx in (EnzymeCore.Const, EnzymeCore.Duplicated, EnzymeCore.BatchDuplicated), Ty in (EnzymeCore.Const, EnzymeCore.Duplicated, EnzymeCore.BatchDuplicated) + Tret == EnzymeCore.Const && continue # ERROR EnzymeTestUtils.are_activities_compatible(Tret, Tdst, Tx, Ty) || continue EnzymeTestUtils.test_reverse(curconv!, Tret, (dst, Tdst), (x, Tx), (y, Ty), (cdims, EnzymeCore.Const)) @@ -990,6 +993,7 @@ end Tx in (EnzymeCore.Const, EnzymeCore.Duplicated, EnzymeCore.BatchDuplicated), Tw in (EnzymeCore.Const, EnzymeCore.Duplicated, EnzymeCore.BatchDuplicated) + Tret == EnzymeCore.Const && continue # ERROR EnzymeTestUtils.are_activities_compatible(Tret, Tdst, Tx, Tw) || continue EnzymeTestUtils.test_reverse(curconv!, Tret, (dst, Tdst), (x, Tx), (w, Tw), (cdims, EnzymeCore.Const)) diff --git a/test/pooling.jl b/test/pooling.jl index f9d57ade..e4ecde80 100644 --- a/test/pooling.jl +++ b/test/pooling.jl @@ -961,6 +961,7 @@ end Tdst in (EnzymeCore.Duplicated, EnzymeCore.BatchDuplicated), Tsrc in (EnzymeCore.Duplicated, EnzymeCore.BatchDuplicated) + Tret == EnzymeCore.Const && continue # ERROR EnzymeTestUtils.are_activities_compatible(Tret, Tdst, Tsrc) || continue EnzymeTestUtils.test_reverse(pool!, Tret, (y, Tdst), (x, Tsrc), (pdims, EnzymeCore.Const)) diff --git a/test/testsuite/gather.jl b/test/testsuite/gather.jl index 92e3bfb7..cfb961ac 100644 --- a/test/testsuite/gather.jl +++ b/test/testsuite/gather.jl @@ -167,6 +167,7 @@ function gather_testsuite(Backend) Tdst in (EnzymeCore.Duplicated, EnzymeCore.BatchDuplicated), Tsrc in (EnzymeCore.Duplicated, EnzymeCore.BatchDuplicated) + Tret == EnzymeCore.Const && continue # ERROR EnzymeTestUtils.are_activities_compatible(Tret, Tdst, Tsrc) || continue EnzymeTestUtils.test_reverse(gather!, Tret, (dst, Tdst), (src, Tsrc), (idx, EnzymeCore.Const)) diff --git a/test/testsuite/scatter.jl b/test/testsuite/scatter.jl index aa0b1c41..760ba78a 100644 --- a/test/testsuite/scatter.jl +++ b/test/testsuite/scatter.jl @@ -222,6 +222,7 @@ function scatter_testsuite(Backend) Tdst in (EnzymeCore.Duplicated, EnzymeCore.BatchDuplicated), Tsrc in (EnzymeCore.Duplicated, EnzymeCore.BatchDuplicated) + Tret == EnzymeCore.Const && continue # ERROR EnzymeTestUtils.are_activities_compatible(Tret, Tdst, Tsrc) || continue EnzymeTestUtils.test_reverse(scatter!, Tret, (op, EnzymeCore.Const), (dst, Tdst), (src, Tsrc), (idx, EnzymeCore.Const)) From ad400dc50da1c9dde5d599aa802fd9d5d5fba1b4 Mon Sep 17 00:00:00 2001 From: CarloLucibello Date: Fri, 5 Dec 2025 12:25:29 +0100 Subject: [PATCH 5/5] fix cdims --- test/conv.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/conv.jl b/test/conv.jl index bc9365dd..08b4077f 100644 --- a/test/conv.jl +++ b/test/conv.jl @@ -935,9 +935,9 @@ end @testset "EnzymeRules: ∇conv_data! spatial_rank=$spatial_rank" for spatial_rank in (1, 2, 3) x = rand(rng, repeat([5], spatial_rank)..., 3, 2) w = rand(rng, repeat([3], spatial_rank)..., 3, 3) + cdims = DenseConvDims(x, w) y = conv(x, w, cdims) - cdims = DenseConvDims(x, w) curconv = ∇conv_data curconv! = ∇conv_data! @@ -958,9 +958,9 @@ end @testset "EnzymeRules: ∇conv_filter! spatial_rank=$spatial_rank" for spatial_rank in (1, 2, 3) x = rand(rng, repeat([5], spatial_rank)..., 3, 2) w = rand(rng, repeat([3], spatial_rank)..., 3, 3) + cdims = DenseConvDims(x, w) y = conv(x, w, cdims) - cdims = DenseConvDims(x, w) curconv = ∇conv_filter curconv! = ∇conv_filter!