Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error while concatenating to an empty CuArray #139

Closed
aldopareja opened this issue Apr 9, 2019 · 1 comment
Closed

error while concatenating to an empty CuArray #139

aldopareja opened this issue Apr 9, 2019 · 1 comment
Labels
bug Something isn't working cuda array Stuff about CuArray.

Comments

@aldopareja
Copy link

Describe the bug
Reproduction is straight forward

To Reproduce
Doesn't work:

using CuArrays
using Flux
x = zeros(Float32,10,0) |> gpu
y = ones(Float32,10,1) |> gpu
hcat(x,y)

Works:

x = zeros(Float32,10,1)
y = ones(Float32,10,1)
hcat(x,y)

also works

using CuArrays
using Flux
x = zeros(Float32,10,1) |> gpu
y = ones(Float32,10,1) |> gpu
hcat(x,y)

Expected behavior
I expect the concatenation to be successful when starting with an empty tensor

Build log

(new-code) pkg> build
  Building SpecialFunctions → `~/.julia/packages/SpecialFunctions/fvheQ/deps/build.log`
  Building LLVM ────────────→ `~/.julia/packages/LLVM/tg8MX/deps/build.log`
  Building Conda ───────────→ `~/.julia/packages/Conda/CpuvI/deps/build.log`
  Building FFTW ────────────→ `~/.julia/packages/FFTW/p7sLQ/deps/build.log`
  Building ZMQ ─────────────→ `~/.julia/packages/ZMQ/ABGOx/deps/build.log`
  Building ZipFile ─────────→ `~/.julia/packages/ZipFile/YHTbb/deps/build.log`
  Building CUDAdrv ─────────→ `~/.julia/packages/CUDAdrv/lu32K/deps/build.log`
  Building CUDAnative ──────→ `~/.julia/packages/CUDAnative/PFgO3/deps/build.log`
  Building CuArrays ────────→ `~/.julia/packages/CuArrays/qZCAt/deps/build.log`
  Building MbedTLS ─────────→ `~/.julia/packages/MbedTLS/X4xar/deps/build.log`
  Building CodecZlib ───────→ `~/.julia/packages/CodecZlib/9jDi1/deps/build.log`
  Building IJulia ──────────→ `~/.julia/packages/IJulia/9ajf8/deps/build.log`

Environment details (please complete this section)
Details on Julia:

julia> versioninfo()
Julia Version 1.1.0
Commit 80516ca (2019-01-21 21:24 UTC)
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: Intel(R) Xeon(R) CPU E5-2620 v3 @ 2.40GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, haswell)

#Installed Packages

$cat Project.toml 
[deps]
CuArrays = "3a865a2d-5b23-5a0f-bc46-62713ec82fae"
Flux = "587475ba-b771-5e3f-ad9e-33799f191a9c"
IJulia = "7073ff75-c697-5162-941a-fcdaad2a7d2a"
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
YAML = "ddb6d928-2868-570f-bddf-ab3f9cf99eb6"

#CUDA versions

$nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Fri_Feb__8_19:08:17_PST_2019
Cuda compilation tools, release 10.1, V10.1.105

$ cat /usr/local/cuda/version.txt
CUDA Version 10.1.105
@maleadt maleadt transferred this issue from JuliaGPU/CuArrays.jl May 27, 2020
@maleadt maleadt added cuda array Stuff about CuArray. enhancement New feature or request bug Something isn't working and removed enhancement New feature or request labels May 27, 2020
@maleadt
Copy link
Member

maleadt commented Aug 25, 2020

This works now.

@maleadt maleadt closed this as completed Aug 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cuda array Stuff about CuArray.
Projects
None yet
Development

No branches or pull requests

2 participants