Skip to content
This repository has been archived by the owner on Mar 12, 2021. It is now read-only.

Add a test for #543. #546

Merged
merged 1 commit into from
Dec 24, 2019
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
4 changes: 3 additions & 1 deletion Manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ version = "5.0.0"

[[CUDAnative]]
deps = ["Adapt", "CEnum", "CUDAapi", "CUDAdrv", "DataStructures", "InteractiveUtils", "LLVM", "Libdl", "Printf", "TimerOutputs"]
git-tree-sha1 = "6e11d5c2c91fc623952e94c4fb73f9c4db74795a"
git-tree-sha1 = "3e2c65aa9bc195a4f204cf2e2379c66730c461cc"
repo-rev = "master"
repo-url = "https://github.com/JuliaGPU/CUDAnative.jl.git"
uuid = "be33ccc6-a3ff-5ff2-a52e-74243cff1e17"
version = "2.7.0"

Expand Down
8 changes: 8 additions & 0 deletions test/base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -441,3 +441,11 @@ end
@test testf(argmin, rand(Int, 10))
@test testf(argmin, -rand(Int, 10))
end

@testset "issue #543" begin
x = CuArrays.rand(ComplexF32, 1)
@test x isa CuArray{Complex{Float32}}

y = exp.(x)
@test y isa CuArray{Complex{Float32}}
end