Skip to content

Commit 9664691

Browse files
committed
use parent for wrappers, undo allowscalar(false)
1 parent 6f376ee commit 9664691

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/abstractarray.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ end
5858

5959
for (atype, op) in
6060
[(:(GPUArray), :(Array)),
61-
(:(LinearAlgebra.Adjoint{<:Any,<:GPUArray}), :(x->LinearAlgebra.adjoint(Array(x.parent)))),
62-
(:(LinearAlgebra.Transpose{<:Any,<:GPUArray}), :(x->LinearAlgebra.transpose(Array(x.parent))))]
61+
(:(LinearAlgebra.Adjoint{<:Any,<:GPUArray}), :(x->LinearAlgebra.adjoint(Array(parent(x))))),
62+
(:(LinearAlgebra.Transpose{<:Any,<:GPUArray}), :(x->LinearAlgebra.transpose(Array(parent(x)))))]
6363
@eval begin
6464
# for display
6565
Base.print_array(io::IO, X::($atype)) =

src/testsuite.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ end
4949
Runs the entire GPUArrays test suite on array type `AT`
5050
"""
5151
function test(AT::Type{<:GPUArray})
52-
GPUArrays.allowscalar(false)
5352
TestSuite.test_construction(AT)
5453
TestSuite.test_gpuinterface(AT)
5554
TestSuite.test_indexing(AT)

0 commit comments

Comments
 (0)