Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lib/ArrayInterfaceCUDA/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,9 @@ ArrayInterface = "5, 6"
ArrayInterfaceGPUArrays = "0.1"
CUDA = "3.9"
julia = "1.6"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test"]
1 change: 1 addition & 0 deletions lib/ArrayInterfaceCUDA/src/ArrayInterfaceCUDA.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module ArrayInterfaceCUDA
using Adapt
using ArrayInterface, ArrayInterfaceGPUArrays
using CUDA
using CUDA.CUSOLVER

using LinearAlgebra

Expand Down
10 changes: 7 additions & 3 deletions lib/ArrayInterfaceCUDA/test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
using ArrayInterfaceCUDA, CUDA, Test
using CUDA
using ArrayInterface
using ArrayInterfaceCUDA

A = cu(rand(4,4))
@test ArrayInterface.lu_instance(A) isa CUDA.CUSOLVER.CuQR
using Test

# Test whether lu_instance throws an error when invoked with an gpu array
@test !isa(try ArrayInterface.lu_instance(CUDA.CuArray([1.f0 1.f0; 1.f0 1.f0])) catch ex ex end, Exception)