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

CuError only renders in the REPL #13

Closed
maleadt opened this issue Feb 6, 2017 · 1 comment
Closed

CuError only renders in the REPL #13

maleadt opened this issue Feb 6, 2017 · 1 comment

Comments

@maleadt
Copy link
Member

maleadt commented Feb 6, 2017

$ julia                                                                                                                                                                            [master] 
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.6.0-dev.2525 (2017-02-02 07:12 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit 8a2928ff2* (4 days old master)
|__/                   |  x86_64-unknown-linux-gnu

julia> using CUDAdrv

julia> CuArray([1])
ERROR: Invalid context (CUDA error #201, ERROR_INVALID_CONTEXT)
Stacktrace:
 [1] macro expansion at /home/tbesard/Projects/Julia-CUDA/CUDAdrv/src/base.jl:61 [inlined]
 [2] alloc(::Int64) at /home/tbesard/Projects/Julia-CUDA/CUDAdrv/src/memory.jl:22
 [3] alloc(::Type{Int64}, ::Int64) at /home/tbesard/Projects/Julia-CUDA/CUDAdrv/src/memory.jl:86
 [4] CUDAdrv.CuArray{Int64,1}(::Tuple{Int64}) at /home/tbesard/Projects/Julia-CUDA/CUDAdrv/src/array.jl:22
 [5] CUDAdrv.CuArray(::Array{Int64,1}) at /home/tbesard/Projects/Julia-CUDA/CUDAdrv/src/array.jl:103

vs

$ julia -e 'using CUDAdrv; CuArray([1])'                                                                                                                                           [master] 
ERROR: CUDAdrv.CuError(201, Nullable{String}())
Stacktrace:
 [1] macro expansion at /home/tbesard/Projects/Julia-CUDA/CUDAdrv/src/base.jl:61 [inlined]
 [2] alloc(::Int64) at /home/tbesard/Projects/Julia-CUDA/CUDAdrv/src/memory.jl:22
 [3] alloc(::Type{Int64}, ::Int64) at /home/tbesard/Projects/Julia-CUDA/CUDAdrv/src/memory.jl:86
 [4] CUDAdrv.CuArray{Int64,1}(::Tuple{Int64}) at /home/tbesard/Projects/Julia-CUDA/CUDAdrv/src/array.jl:22
 [5] CUDAdrv.CuArray(::Array{Int64,1}) at /home/tbesard/Projects/Julia-CUDA/CUDAdrv/src/array.jl:103
@maleadt
Copy link
Member Author

maleadt commented Feb 17, 2017

Fixed by JuliaLang/julia#20497

@maleadt maleadt closed this as completed Feb 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant