Created
April 1, 2020 08:32
-
-
Save aussetg/0f0e0b0bd87517cce5ad953b2ee08d24 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
julia> CuArrays.zeros(128, 32) |> nn | |
┌ Warning: calls to Base intrinsics might be GPU incompatible | |
│ exception = | |
│ You called exp(x::T) where T<:Union{Float32, Float64} in Base.Math at special/exp.jl:75, maybe you intended to call exp(x::Float32) in CUDAnative at /home/guillaume/.julia/packages/CUDAnative/hfulr/src/device/cuda/math.jl:101 instead? | |
│ Stacktrace: | |
│ [1] exp at special/exp.jl:75 | |
│ [2] mish at /home/guillaume/.julia/packages/NNlib/FAI3o/src/activation.jl:206 | |
│ [3] #25 at /home/guillaume/.julia/packages/GPUArrays/1wgPO/src/broadcast.jl:49 | |
└ @ CUDAnative ~/.julia/packages/CUDAnative/hfulr/src/compiler/irgen.jl:111 | |
┌ Warning: calls to Base intrinsics might be GPU incompatible | |
│ exception = | |
│ You called log1p(x::Float32) in Base.Math at special/log.jl:361, maybe you intended to call log1p(x::Float32) in CUDAnative at /home/guillaume/.julia/packages/CUDAnative/hfulr/src/device/cuda/math.jl:85 instead? | |
│ Stacktrace: | |
│ [1] log1p at special/log.jl:361 | |
│ [2] mish at /home/guillaume/.julia/packages/NNlib/FAI3o/src/activation.jl:206 | |
│ [3] #25 at /home/guillaume/.julia/packages/GPUArrays/1wgPO/src/broadcast.jl:49 | |
└ @ CUDAnative ~/.julia/packages/CUDAnative/hfulr/src/compiler/irgen.jl:111 | |
┌ Warning: calls to Base intrinsics might be GPU incompatible | |
│ exception = | |
│ You called exp(x::T) where T<:Union{Float32, Float64} in Base.Math at special/exp.jl:75, maybe you intended to call exp(x::Float32) in CUDAnative at /home/guillaume/.julia/packages/CUDAnative/hfulr/src/device/cuda/math.jl:101 instead? | |
│ Stacktrace: | |
│ [1] exp at special/exp.jl:75 | |
│ [2] mish at /home/guillaume/.julia/packages/NNlib/FAI3o/src/activation.jl:206 | |
│ [3] #25 at /home/guillaume/.julia/packages/GPUArrays/1wgPO/src/broadcast.jl:49 | |
└ @ CUDAnative ~/.julia/packages/CUDAnative/hfulr/src/compiler/irgen.jl:111 | |
┌ Warning: calls to Base intrinsics might be GPU incompatible | |
│ exception = | |
│ You called log1p(x::Float32) in Base.Math at special/log.jl:361, maybe you intended to call log1p(x::Float32) in CUDAnative at /home/guillaume/.julia/packages/CUDAnative/hfulr/src/device/cuda/math.jl:85 instead? | |
│ Stacktrace: | |
│ [1] log1p at special/log.jl:361 | |
│ [2] mish at /home/guillaume/.julia/packages/NNlib/FAI3o/src/activation.jl:206 | |
│ [3] #25 at /home/guillaume/.julia/packages/GPUArrays/1wgPO/src/broadcast.jl:49 | |
└ @ CUDAnative ~/.julia/packages/CUDAnative/hfulr/src/compiler/irgen.jl:111 | |
┌ Warning: calls to Base intrinsics might be GPU incompatible | |
│ exception = | |
│ You called tanh(x::T) where T<:Union{Float32, Float64} in Base.Math at special/hyperbolic.jl:151, maybe you intended to call tanh(x::Float32) in CUDAnative at /home/guillaume/.julia/packages/CUDAnative/hfulr/src/device/cuda/math.jl:55 instead? | |
│ Stacktrace: | |
│ [1] tanh at special/hyperbolic.jl:151 | |
│ [2] mish at /home/guillaume/.julia/packages/NNlib/FAI3o/src/activation.jl:206 | |
│ [3] #25 at /home/guillaume/.julia/packages/GPUArrays/1wgPO/src/broadcast.jl:49 | |
└ @ CUDAnative ~/.julia/packages/CUDAnative/hfulr/src/compiler/irgen.jl:111 | |
ERROR: InvalidIRError: compiling #25(CuArrays.CuKernelState, CUDAnative.CuDeviceArray{Float32,2,CUDAnative.AS.Global}, Base.Broadcast.Broadcasted{Nothing,Tuple{Base.OneTo{Int64},Base.OneTo{Int64}},typeof(mish),Tuple{Base.Broadcast.Broadcasted{Base.Broadcast.ArrayStyle{CuArray},Nothing,typeof(+),Tuple{Base.Broadcast.Extruded{CUDAnative.CuDeviceArray{Float32,2,CUDAnative.AS.Global},Tuple{Bool,Bool},Tuple{Int64,Int64}},Base.Broadcast.Extruded{CUDAnative.CuDeviceArray{Float32,1,CUDAnative.AS.Global},Tuple{Bool},Tuple{Int64}}}}}}) resulted in invalid LLVM IR | |
Reason: unsupported call to the Julia runtime (call to jl_f_tuple) | |
Stacktrace: | |
[1] expm1 at math.jl:351 | |
[2] tanh at special/hyperbolic.jl:165 | |
[3] mish at /home/guillaume/.julia/packages/NNlib/FAI3o/src/activation.jl:206 | |
[4] _broadcast_getindex_evalf at broadcast.jl:631 | |
[5] _broadcast_getindex at broadcast.jl:604 | |
[6] getindex at broadcast.jl:564 | |
[7] #25 at /home/guillaume/.julia/packages/GPUArrays/1wgPO/src/broadcast.jl:50 | |
Reason: unsupported call to the Julia runtime (call to jl_f_tuple) | |
Stacktrace: | |
[1] expm1 at math.jl:351 | |
[2] tanh at special/hyperbolic.jl:169 | |
[3] mish at /home/guillaume/.julia/packages/NNlib/FAI3o/src/activation.jl:206 | |
[4] _broadcast_getindex_evalf at broadcast.jl:631 | |
[5] _broadcast_getindex at broadcast.jl:604 | |
[6] getindex at broadcast.jl:564 | |
[7] #25 at /home/guillaume/.julia/packages/GPUArrays/1wgPO/src/broadcast.jl:50 | |
Reason: unsupported call to the Julia runtime (call to jl_type_error) | |
Stacktrace: | |
[1] expm1 at math.jl:351 | |
[2] tanh at special/hyperbolic.jl:165 | |
[3] mish at /home/guillaume/.julia/packages/NNlib/FAI3o/src/activation.jl:206 | |
[4] _broadcast_getindex_evalf at broadcast.jl:631 | |
[5] _broadcast_getindex at broadcast.jl:604 | |
[6] getindex at broadcast.jl:564 | |
[7] #25 at /home/guillaume/.julia/packages/GPUArrays/1wgPO/src/broadcast.jl:50 | |
Reason: unsupported call to the Julia runtime (call to jl_type_error) | |
Stacktrace: | |
[1] expm1 at math.jl:351 | |
[2] tanh at special/hyperbolic.jl:169 | |
[3] mish at /home/guillaume/.julia/packages/NNlib/FAI3o/src/activation.jl:206 | |
[4] _broadcast_getindex_evalf at broadcast.jl:631 | |
[5] _broadcast_getindex at broadcast.jl:604 | |
[6] getindex at broadcast.jl:564 | |
[7] #25 at /home/guillaume/.julia/packages/GPUArrays/1wgPO/src/broadcast.jl:50 | |
Reason: unsupported dynamic function invocation (call to print) | |
Stacktrace: | |
[1] print_to_string at strings/io.jl:135 | |
[2] string at strings/io.jl:174 | |
[3] throw_complex_domainerror at math.jl:33 | |
[4] log1p at special/log.jl:389 | |
[5] softplus at /home/guillaume/.julia/packages/NNlib/FAI3o/src/activation.jl:189 | |
[6] mish at /home/guillaume/.julia/packages/NNlib/FAI3o/src/activation.jl:206 | |
[7] _broadcast_getindex_evalf at broadcast.jl:631 | |
[8] _broadcast_getindex at broadcast.jl:604 | |
[9] getindex at broadcast.jl:564 | |
[10] #25 at /home/guillaume/.julia/packages/GPUArrays/1wgPO/src/broadcast.jl:50 | |
Reason: unsupported call through a literal pointer (call to jl_array_grow_end) | |
Stacktrace: | |
[1] _growend! at array.jl:870 | |
[2] resize! at array.jl:1063 | |
[3] print_to_string at strings/io.jl:137 | |
[4] string at strings/io.jl:174 | |
[5] throw_complex_domainerror at math.jl:33 | |
[6] log1p at special/log.jl:389 | |
[7] softplus at /home/guillaume/.julia/packages/NNlib/FAI3o/src/activation.jl:189 | |
[8] mish at /home/guillaume/.julia/packages/NNlib/FAI3o/src/activation.jl:206 | |
[9] _broadcast_getindex_evalf at broadcast.jl:631 | |
[10] _broadcast_getindex at broadcast.jl:604 | |
[11] getindex at broadcast.jl:564 | |
[12] #25 at /home/guillaume/.julia/packages/GPUArrays/1wgPO/src/broadcast.jl:50 | |
Reason: unsupported call through a literal pointer (call to jl_array_del_end) | |
Stacktrace: | |
[1] _deleteend! at array.jl:879 | |
[2] resize! at array.jl:1068 | |
[3] print_to_string at strings/io.jl:137 | |
[4] string at strings/io.jl:174 | |
[5] throw_complex_domainerror at math.jl:33 | |
[6] log1p at special/log.jl:389 | |
[7] softplus at /home/guillaume/.julia/packages/NNlib/FAI3o/src/activation.jl:189 | |
[8] mish at /home/guillaume/.julia/packages/NNlib/FAI3o/src/activation.jl:206 | |
[9] _broadcast_getindex_evalf at broadcast.jl:631 | |
[10] _broadcast_getindex at broadcast.jl:604 | |
[11] getindex at broadcast.jl:564 | |
[12] #25 at /home/guillaume/.julia/packages/GPUArrays/1wgPO/src/broadcast.jl:50 | |
Reason: unsupported call through a literal pointer (call to jl_array_to_string) | |
Stacktrace: | |
[1] String at strings/string.jl:39 | |
[2] print_to_string at strings/io.jl:137 | |
[3] string at strings/io.jl:174 | |
[4] throw_complex_domainerror at math.jl:33 | |
[5] log1p at special/log.jl:389 | |
[6] softplus at /home/guillaume/.julia/packages/NNlib/FAI3o/src/activation.jl:189 | |
[7] mish at /home/guillaume/.julia/packages/NNlib/FAI3o/src/activation.jl:206 | |
[8] _broadcast_getindex_evalf at broadcast.jl:631 | |
[9] _broadcast_getindex at broadcast.jl:604 | |
[10] getindex at broadcast.jl:564 | |
[11] #25 at /home/guillaume/.julia/packages/GPUArrays/1wgPO/src/broadcast.jl:50 | |
Reason: unsupported call through a literal pointer (call to jl_alloc_string) | |
Stacktrace: | |
[1] _string_n at strings/string.jl:60 | |
[2] StringVector at iobuffer.jl:31 | |
[3] #IOBuffer#314 at iobuffer.jl:114 | |
[4] multiple call sites at unknown:0 | |
Reason: unsupported call through a literal pointer (call to jl_string_to_array) | |
Stacktrace: | |
[1] unsafe_wrap at strings/string.jl:71 | |
[2] StringVector at iobuffer.jl:31 | |
[3] #IOBuffer#314 at iobuffer.jl:114 | |
[4] multiple call sites at unknown:0 | |
Reason: unsupported call through a literal pointer (call to __memset_avx2_unaligned) | |
Stacktrace: | |
[1] fill! at array.jl:409 | |
[2] #IOBuffer#314 at iobuffer.jl:121 | |
[3] multiple call sites at unknown:0 | |
Reason: unsupported call through a literal pointer (call to jl_alloc_string) | |
Stacktrace: | |
[1] _string_n at strings/string.jl:60 | |
[2] string at strings/substring.jl:191 | |
[3] throw_complex_domainerror at math.jl:33 | |
[4] log1p at special/log.jl:389 | |
[5] softplus at /home/guillaume/.julia/packages/NNlib/FAI3o/src/activation.jl:189 | |
[6] mish at /home/guillaume/.julia/packages/NNlib/FAI3o/src/activation.jl:206 | |
[7] _broadcast_getindex_evalf at broadcast.jl:631 | |
[8] _broadcast_getindex at broadcast.jl:604 | |
[9] getindex at broadcast.jl:564 | |
[10] #25 at /home/guillaume/.julia/packages/GPUArrays/1wgPO/src/broadcast.jl:50 | |
Reason: unsupported call through a literal pointer (call to __memmove_avx_unaligned) | |
Stacktrace: | |
[1] unsafe_copyto! at array.jl:247 | |
[2] __unsafe_string! at strings/substring.jl:178 | |
[3] string at strings/substring.jl:194 | |
[4] throw_complex_domainerror at math.jl:33 | |
[5] log1p at special/log.jl:389 | |
[6] softplus at /home/guillaume/.julia/packages/NNlib/FAI3o/src/activation.jl:189 | |
[7] mish at /home/guillaume/.julia/packages/NNlib/FAI3o/src/activation.jl:206 | |
[8] _broadcast_getindex_evalf at broadcast.jl:631 | |
[9] _broadcast_getindex at broadcast.jl:604 | |
[10] getindex at broadcast.jl:564 | |
[11] #25 at /home/guillaume/.julia/packages/GPUArrays/1wgPO/src/broadcast.jl:50 | |
Stacktrace: | |
[1] check_ir(::CUDAnative.CompilerJob, ::LLVM.Module) at /home/guillaume/.julia/packages/CUDAnative/hfulr/src/compiler/validation.jl:116 | |
[2] macro expansion at /home/guillaume/.julia/packages/CUDAnative/hfulr/src/compiler/driver.jl:193 [inlined] | |
[3] macro expansion at /home/guillaume/.julia/packages/TimerOutputs/7Id5J/src/TimerOutput.jl:228 [inlined] | |
[4] codegen(::Symbol, ::CUDAnative.CompilerJob; libraries::Bool, dynamic_parallelism::Bool, optimize::Bool, strip::Bool, strict::Bool) at /home/guillaume/.julia/packages/CUDAnative/hfulr/src/compiler/driver.jl:191 | |
[5] compile(::Symbol, ::CUDAnative.CompilerJob; libraries::Bool, dynamic_parallelism::Bool, optimize::Bool, strip::Bool, strict::Bool) at /home/guillaume/.julia/packages/CUDAnative/hfulr/src/compiler/driver.jl:52 | |
[6] #compile#152 at /home/guillaume/.julia/packages/CUDAnative/hfulr/src/compiler/driver.jl:33 [inlined] | |
[7] macro expansion at /home/guillaume/.julia/packages/CUDAnative/hfulr/src/execution.jl:393 [inlined] | |
[8] cufunction(::GPUArrays.var"#25#26", ::Type{Tuple{CuArrays.CuKernelState,CUDAnative.CuDeviceArray{Float32,2,CUDAnative.AS.Global},Base.Broadcast.Broadcasted{Nothing,Tuple{Base.OneTo{Int64},Base.OneTo{Int64}},typeof(mish),Tuple{Base.Broadcast.Broadcasted{Base.Broadcast.ArrayStyle{CuArray},Nothing,typeof(+),Tuple{Base.Broadcast.Extruded{CUDAnative.CuDeviceArray{Float32,2,CUDAnative.AS.Global},Tuple{Bool,Bool},Tuple{Int64,Int64}},Base.Broadcast.Extruded{CUDAnative.CuDeviceArray{Float32,1,CUDAnative.AS.Global},Tuple{Bool},Tuple{Int64}}}}}}}}; name::Nothing, kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /home/guillaume/.julia/packages/CUDAnative/hfulr/src/execution.jl:360 | |
[9] cufunction(::Function, ::Type{T} where T) at /home/guillaume/.julia/packages/CUDAnative/hfulr/src/execution.jl:360 | |
[10] macro expansion at /home/guillaume/.julia/packages/CUDAnative/hfulr/src/execution.jl:179 [inlined] | |
[11] _gpu_call(::CuArrays.CuArrayBackend, ::Function, ::CuArray{Float32,2,Nothing}, ::Tuple{CuArray{Float32,2,Nothing},Base.Broadcast.Broadcasted{Nothing,Tuple{Base.OneTo{Int64},Base.OneTo{Int64}},typeof(mish),Tuple{Base.Broadcast.Broadcasted{Base.Broadcast.ArrayStyle{CuArray},Nothing,typeof(+),Tuple{Base.Broadcast.Extruded{CuArray{Float32,2,Nothing},Tuple{Bool,Bool},Tuple{Int64,Int64}},Base.Broadcast.Extruded{CuArray{Float32,1,Nothing},Tuple{Bool},Tuple{Int64}}}}}}}, ::Tuple{Tuple{Int64},Tuple{Int64}}) at /home/guillaume/.julia/packages/CuArrays/A6GUx/src/gpuarray_interface.jl:62 | |
[12] gpu_call at /home/guillaume/.julia/packages/GPUArrays/1wgPO/src/abstract_gpu_interface.jl:151 [inlined] | |
[13] gpu_call(::Function, ::CuArray{Float32,2,Nothing}, ::Tuple{CuArray{Float32,2,Nothing},Base.Broadcast.Broadcasted{Nothing,Tuple{Base.OneTo{Int64},Base.OneTo{Int64}},typeof(mish),Tuple{Base.Broadcast.Broadcasted{Base.Broadcast.ArrayStyle{CuArray},Nothing,typeof(+),Tuple{Base.Broadcast.Extruded{CuArray{Float32,2,Nothing},Tuple{Bool,Bool},Tuple{Int64,Int64}},Base.Broadcast.Extruded{CuArray{Float32,1,Nothing},Tuple{Bool},Tuple{Int64}}}}}}}) at /home/guillaume/.julia/packages/GPUArrays/1wgPO/src/abstract_gpu_interface.jl:128 | |
[14] copyto! at /home/guillaume/.julia/packages/GPUArrays/1wgPO/src/broadcast.jl:48 [inlined] | |
[15] copyto! at ./broadcast.jl:864 [inlined] | |
[16] copy(::Base.Broadcast.Broadcasted{Base.Broadcast.ArrayStyle{CuArray},Tuple{Base.OneTo{Int64},Base.OneTo{Int64}},typeof(mish),Tuple{Base.Broadcast.Broadcasted{Base.Broadcast.ArrayStyle{CuArray},Nothing,typeof(+),Tuple{CuArray{Float32,2,Nothing},CuArray{Float32,1,Nothing}}}}}) at ./broadcast.jl:840 | |
[17] materialize at ./broadcast.jl:820 [inlined] | |
[18] Dense at /home/guillaume/.julia/packages/Flux/NpkMm/src/layers/basic.jl:115 [inlined] | |
[19] Dense at /home/guillaume/.julia/packages/Flux/NpkMm/src/layers/basic.jl:126 [inlined] | |
[20] |>(::CuArray{Float32,2,Nothing}, ::Dense{typeof(mish),CuArray{Float32,2,Nothing},CuArray{Float32,1,Nothing}}) at ./operators.jl:823 | |
[21] top-level scope at REPL[5]:1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment