Skip to content

Commit

Permalink
Test setup for CUDA
Browse files Browse the repository at this point in the history
  • Loading branch information
nHackel committed Jun 6, 2024
1 parent c278627 commit 2475c89
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions test/gpu/cuda.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
using CUDA, CuNFFT

arrayTypes = [CuArray]

include(joinpath(@__DIR__(), "..", "runtests.jl"))
3 changes: 2 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ using NFFT
using RadonKA
using JLArrays

arrayTypes = [Array, JLArray]
areTypesDefined = @isdefined arrayTypes
arrayTypes = areTypesDefined ? arrayTypes : [Array, JLArray]

@testset "LinearOperatorCollection" begin
include("testNormalOp.jl")
Expand Down
2 changes: 1 addition & 1 deletion test/testOperators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ function testNFFT2d(N=16;arrayType = Array)
F_nfft.toeplitz = false
AHA = normalOperator(F_nfft)
y_AHA_nfft = Array(AHA * xop)
y_AHA = F' * F * xop
y_AHA = F' * F * vec(x)
@test y_AHA y_AHA_nfft rtol = 1e-2

# test AHA with Toeplitz
Expand Down

0 comments on commit 2475c89

Please sign in to comment.