Skip to content

Instantly share code, notes, and snippets.

@goretkin
Created January 29, 2018 23:01
Show Gist options
  • Save goretkin/a919f29aa6d37ff66ca15348ee79d03e to your computer and use it in GitHub Desktop.
Save goretkin/a919f29aa6d37ff66ca15348ee79d03e to your computer and use it in GitHub Desktop.
julia> using CLArrays
WARNING: deprecated syntax "typealias CL_float2 Complex64".
Use "const CL_float2 = Complex64" instead.
WARNING: deprecated syntax "typealias CL_double2 Complex128".
Use "const CL_double2 = Complex128" instead.
julia> for dev in CLArrays.devices()
@show dev
CLArrays.init(dev)
x = zeros(CLArray{Float32}, 5, 5) # create a CLArray on device `dev`
broadcast!(sin, x, x)
end
dev = OpenCL.Device(Iris Pro on Apple @0x0000000001024500)
dev = OpenCL.Device(GeForce GT 750M on Apple @0x0000000001022700)
ERROR (unhandled task failure): OpenCL Error: OpenCL.Context error: ????????
x͎?
Stacktrace:
[1] raise_context_error(::String, ::String) at /Users/goretkin/gl62/packages/v0.6/OpenCL/src/context.jl:109
[2] macro expansion at /Users/goretkin/gl62/packages/v0.6/OpenCL/src/context.jl:148 [inlined]
[3] (::OpenCL.cl.##43#44)() at ./task.jl:335
dev = OpenCL.Device(Intel(R) Core(TM) i7-4960HQ CPU @ 2.60GHz on Apple @0x00000000ffffffff)
ERROR: CLError(code=-52, CL_INVALID_KERNEL_ARGS)ERROR (unhandled task failure): OpenCL Error: OpenCL.Context error:
Stacktrace:
[1] raise_context_error(::String, ::String) at /Users/goretkin/gl62/packages/v0.6/OpenCL/src/context.jl:109
[2] macro expansion at /Users/goretkin/gl62/packages/v0.6/OpenCL/src/context.jl:148 [inlined]
[3] (::OpenCL.cl.##43#44)() at ./task.jl:335
Stacktrace:
[1] macro expansion at /Users/goretkin/gl62/packages/v0.6/OpenCL/src/macros.jl:6 [inlined]
[2] (::CLArrays.CLFunction{GPUArrays.#const_kernel2,Tuple{CLArrays.KernelState,CLArrays.CLArray{Float32,2},Float32,UInt32},Tuple{(2, :ptr)}})(::Tuple{CLArrays.KernelState,CLArrays.CLArray{Float32,2},Float32,UInt32}, ::Tuple{Int64}, ::Tuple{Int64}, ::OpenCL.cl.CmdQueue) at /Users/goretkin/gl62/packages/v0.6/CLArrays/src/compilation.jl:288
[3] (::CLArrays.CLFunction{GPUArrays.#const_kernel2,Tuple{CLArrays.KernelState,CLArrays.CLArray{Float32,2},Float32,UInt32},Tuple{(2, :ptr)}})(::Tuple{CLArrays.KernelState,CLArrays.CLArray{Float32,2},Float32,UInt32}, ::Tuple{Int64}, ::Tuple{Int64}) at /Users/goretkin/gl62/packages/v0.6/CLArrays/src/compilation.jl:272
[4] _gpu_call(::Function, ::CLArrays.CLArray{Float32,2}, ::Tuple{CLArrays.CLArray{Float32,2},Float32,UInt32}, ::Tuple{Tuple{Int64},Tuple{Int64}}) at /Users/goretkin/gl62/packages/v0.6/CLArrays/src/compilation.jl:18
[5] gpu_call(::Function, ::CLArrays.CLArray{Float32,2}, ::Tuple{CLArrays.CLArray{Float32,2},Float32,UInt32}, ::Int64) at /Users/goretkin/gl62/packages/v0.6/GPUArrays/src/abstract_gpu_interface.jl:151
[6] fill!(::CLArrays.CLArray{Float32,2}, ::Float32) at /Users/goretkin/gl62/packages/v0.6/GPUArrays/src/construction.jl:14
[7] macro expansion at ./REPL[2]:4 [inlined]
[8] anonymous at ./<missing>:?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment