Skip to content

Commit 0d3bd0f

Browse files
Merge #1805
1805: Add buildkite step to run on Julia LTS r=DhairyaLGandhi a=DhairyaLGandhi Allow bors to unblock some PRs as well. Co-authored-by: Dhairya Gandhi <dhairya@juliacomputing.com>
2 parents bffb541 + 0e6f3d5 commit 0d3bd0f

File tree

3 files changed

+23
-5
lines changed

3 files changed

+23
-5
lines changed

.buildkite/pipeline.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
steps:
2-
- label: "GPU integeration with julia v1.6" # change to "v1" when 1.6 is out
2+
- label: "GPU integration with julia v1.6"
3+
plugins:
4+
- JuliaCI/julia#v1:
5+
version: "1.6"
6+
- JuliaCI/julia-test#v1: ~
7+
agents:
8+
queue: "juliagpu"
9+
cuda: "*"
10+
timeout_in_minutes: 60
11+
12+
- label: "GPU integration with julia v1"
313
plugins:
414
- JuliaCI/julia#v1:
515
version: "1"

test/cuda/layers.jl

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,18 @@ function gpu_gradtest(name::String, layers::Vector, x_cpu = nothing, args...; te
4545

4646
# test
4747
if test_cpu
48-
@test y_gpu y_cpu rtol=1f-3 atol=1f-3
48+
if VERSION >= v"1.7" && layer === GroupedConvTranspose && args[end] == selu
49+
@test_broken y_gpu y_cpu rtol=1f-3 atol=1f-3
50+
else
51+
@test y_gpu y_cpu rtol=1f-3 atol=1f-3
52+
end
4953
if isnothing(xg_cpu)
5054
@test isnothing(xg_gpu)
5155
else
5256
if layer === GroupedConvTranspose
53-
@test Array(xg_gpu) xg_cpu rtol=2f-2 atol=1f-3
57+
@test Array(xg_gpu) xg_cpu rtol = 2f-2 atol = 1f-3
5458
else
55-
@test Array(xg_gpu) xg_cpu rtol=1f-3 atol=1f-3
59+
@test Array(xg_gpu) xg_cpu rtol = 1f-3 atol = 1f-3
5660
end
5761
end
5862
end

test/utils.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,11 @@ end
416416
∇m = gradient(m -> sum(m(x)), m)[1]
417417
p, re = destructure(m)
418418
∇p = gradient-> sum(re(θ)(x)), p)[1]
419-
@test_broken ∇p destructure(∇m)[1]
419+
if VERSION >= v"1.7"
420+
@test_broken ∇p destructure(∇m)[1]
421+
else
422+
@test ∇p destructure(∇m)[1]
423+
end
420424
end
421425
end
422426
end

0 commit comments

Comments
 (0)