Skip to content

Commit

Permalink
Use JLArrays for gpu tests
Browse files Browse the repository at this point in the history
  • Loading branch information
simsurace committed Feb 21, 2024
1 parent 4caf2d9 commit 4468cd9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[deps]
JLArrays = "27aeb0d3-9eb9-45fb-866b-73c2ecf80fcb"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
7 changes: 4 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using ScalarKernelFunctions
using JLArrays
using Test

@testset "ScalarKernelFunctions" begin
Expand Down Expand Up @@ -52,9 +53,9 @@ using Test
end
end
end
@testset "GPU element type and type stability" begin
x0 = rand(Float32, 10)
x1 = rand(Float32, 10)
@testset "GPU compatibility" begin
x0 = rand(Float32, 10) |> jl
x1 = rand(Float32, 10) |> jl
@testset "$k" for k in (
ScalarSEKernel(), ScalarLinearKernel(), ScalarPeriodicKernel()
)
Expand Down

0 comments on commit 4468cd9

Please sign in to comment.