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

Floating-point Inf causes an error #205

Closed
dpsanders opened this issue Jun 4, 2020 · 3 comments
Closed

Floating-point Inf causes an error #205

dpsanders opened this issue Jun 4, 2020 · 3 comments

Comments

@dpsanders
Copy link

dpsanders commented Jun 4, 2020

julia> cu( [Inf] )
ERROR: CUDA error: an illegal memory access was encountered (code 700, ERROR_ILLEGAL_ADDRESS)
Stacktrace:
 [1] throw_api_error(::CUDA.cudaError_enum) at /home/dpsanders/.julia/dev/CUDA/lib/cuda/error.jl:103
 [2] macro expansion at /home/dpsanders/.julia/dev/CUDA/lib/cuda/error.jl:110 [inlined]
 [3] cuMemcpyHtoD_v2(::CuPtr{Float32}, ::Ptr{Float32}, ::Int64) at /home/dpsanders/.julia/dev/CUDA/lib/utils/call.jl:93
 [4] #unsafe_copyto!#7 at /home/dpsanders/.julia/dev/CUDA/lib/cuda/memory.jl:324 [inlined]
 [5] unsafe_copyto! at /home/dpsanders/.julia/dev/CUDA/lib/cuda/memory.jl:317 [inlined]
 [6] unsafe_copyto! at /home/dpsanders/.julia/dev/CUDA/src/array.jl:300 [inlined]
 [7] copyto! at /home/dpsanders/.julia/dev/CUDA/src/array.jl:273 [inlined]
 [8] copyto! at /home/dpsanders/.julia/packages/GPUArrays/JqOUg/src/host/abstractarray.jl:102 [inlined]
 [9] convert(::Type{CuArray{Float32,N,P} where P where N}, ::Array{Float64,1}) at /home/dpsanders/.julia/packages/GPUArrays/JqOUg/src/host/construction.jl:91
 [10] adapt_storage at /home/dpsanders/.julia/dev/CUDA/src/array.jl:255 [inlined]
 [11] adapt_structure at /home/dpsanders/.julia/packages/Adapt/3Zk8x/src/Adapt.jl:83 [inlined]
 [12] adapt at /home/dpsanders/.julia/packages/Adapt/3Zk8x/src/Adapt.jl:81 [inlined]
 [13] cu(::Array{Float64,1}) at /home/dpsanders/.julia/dev/CUDA/src/array.jl:334
 [14] top-level scope at none:0
@dpsanders
Copy link
Author

Hmm, now I can't reproduce.

@dpsanders
Copy link
Author

I can't reproduce in a new session. Did I somehow corrupt the GPU memory?

@maleadt
Copy link
Member

maleadt commented Jun 5, 2020

Probably this error will have come from a previous operation, yes.

@maleadt maleadt closed this as completed Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants