Skip to content

Commit

Permalink
re-enable one cuda test
Browse files Browse the repository at this point in the history
  • Loading branch information
mcabbott committed Mar 13, 2021
1 parent 8ec26b5 commit 1d7d150
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/cuda.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Tullio, Test
using CUDA, KernelAbstractions
CUDA.allowscalar(false)
using Tracker
using Tracker, ForwardDiff
@tullio grad=Base

# matmul
Expand All @@ -17,14 +17,14 @@ A = rand(3,40); B = rand(40,500);
@test ΔA ones(3,500) * B'
@test cu(ΔA) Tracker.gradient((A,B) -> sum(mul(A, B)), cu(A), cu(B))[1]

#=
# shifts
@tullio D[i,j] := A[i,j+k] k in 0:10
@test axes(D) == (1:3, 1:30)
@tullio cD[i,j] := cu(A)[i,j+k] k in 0:10
@test cD isa CuArray
@test cD cu(D)

#=
# ranges
@tullio E[i,j] := A[i,j+k-1] + (-1:0.5:1)[k]
@test axes(E) == (1:3, 1:36)
Expand Down

0 comments on commit 1d7d150

Please sign in to comment.