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

Commit 01be4f4

Browse files
authored
Merge pull request #546 from JuliaGPU/tb/test_543
Add a test for #543.
2 parents 93a54ad + eaf235a commit 01be4f4

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Manifest.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ version = "5.0.0"
3434

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

test/base.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,3 +441,11 @@ end
441441
@test testf(argmin, rand(Int, 10))
442442
@test testf(argmin, -rand(Int, 10))
443443
end
444+
445+
@testset "issue #543" begin
446+
x = CuArrays.rand(ComplexF32, 1)
447+
@test x isa CuArray{Complex{Float32}}
448+
449+
y = exp.(x)
450+
@test y isa CuArray{Complex{Float32}}
451+
end

0 commit comments

Comments
 (0)