Giter Site home page Giter Site logo

CL_INVALID_DEVICE on OSX about ocl HOT 10 CLOSED

cogciprocate avatar cogciprocate commented on May 21, 2024
CL_INVALID_DEVICE on OSX

from ocl.

Comments (10)

 avatar commented on May 21, 2024

Just so you know, this is a low priority for me as I'll be getting away from OSX and Apple hardware ASAP.

from ocl.

c0gent avatar c0gent commented on May 21, 2024

I'll be getting away from OSX and Apple hardware ASAP

That would be wise but a more elegant solution is probably needed here.

from ocl.

c0gent avatar c0gent commented on May 21, 2024

cogciprocate/ocl-core@27d52b7 now wraps this error case in a special variant. Please do a cargo update then copy/print the output results of cargo run --example info here when you get a chance.

from ocl.

 avatar commented on May 21, 2024

Here's the output:

ocl [master] » cargo run --example info                                                                                                                                                              ~/m/ocl
    Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
     Running `target/debug/examples/info`
Looping through avaliable platforms (1):
Platform { Profile: FULL_PROFILE, Version: OpenCL 1.2 (Nov  1 2016 21:34:57), Name: Apple, Vendor: Apple, Extensions: cl_APPLE_SetMemObjectDestructor cl_APPLE_ContextLoggingFunctions cl_APPLE_clut cl_APPLE_query_kernel_names cl_APPLE_gl_sharing cl_khr_gl_event } { Total Device Count: 2 }
Device (terse) { Name: Intel(R) Core(TM) i5-5250U CPU @ 1.60GHz, Vendor: Intel }
Device (terse) { Name: Intel(R) Iris(TM) Graphics 6100, Vendor: Intel Inc. }
Context { ReferenceCount: 8, Devices: [DeviceId(0x1024500), DeviceId(0xffffffff)], Properties: ContextProperties({Platform: Platform(PlatformId(0x7fff0000))}), NumDevices: 2 }
Queue { Context: Context(0x7ff2eb603fd0), Device: DeviceId(0xffffffff), ReferenceCount: 6, Properties: QUEUE_PROFILING_ENABLE }
Buffer Mem { Type: Buffer, Flags: MEM_READ_WRITE, Size: 8192, HostPtr: mem info unavailable, MapCount: 0, ReferenceCount: 2, Context: Context(0x7ff2eb603fd0), AssociatedMemobject: None, Offset: 0 }
Image { ElementSize: 4, RowPitch: 8192, SlicePitch: 0, Width: 2048, Height: 0, Depth: 0, ArraySize: 0, Buffer: None, NumMipLevels: 0, NumSamples: 0 } Mem { Type: Image1d, Flags: MEM_READ_WRITE, Size: 8192, HostPtr: mem info unavailable, MapCount: 0, ReferenceCount: 1, Context: Context(0x7ff2eb603fd0), AssociatedMemobject: None, Offset: 0 }
Sampler { ReferenceCount: 1, Context: Context(0x7ff2eb603fd0), NormalizedCoords: false, AddressingMode: None, FilterMode: Nearest }
Program (terse) { KernelNames: 'multiply', NumDevices: 2, ReferenceCount: 2, Context: Context(0x7ff2eb603fd0) }
Kernel { FunctionName: multiply, ReferenceCount: 1, Context: Context(0x7ff2eb603fd0), Program: Program(0x7ff2eb604990), Attributes:  } WorkGroup { WorkGroupSize:

################################ OPENCL ERROR ###############################

Error executing function: clGetKernelWorkGroupInfo

Status error code: CL_INVALID_DEVICE (-33)

Please visit the following url for more information:

https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clGetKernelWorkGroupInfo.html#errors

#############################################################################
, CompileWorkGroupSize:

################################ OPENCL ERROR ###############################

Error executing function: clGetKernelWorkGroupInfo

Status error code: CL_INVALID_DEVICE (-33)

Please visit the following url for more information:

https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clGetKernelWorkGroupInfo.html#errors

#############################################################################
, LocalMemSize:

################################ OPENCL ERROR ###############################

Error executing function: clGetKernelWorkGroupInfo

Status error code: CL_INVALID_DEVICE (-33)

Please visit the following url for more information:

https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clGetKernelWorkGroupInfo.html#errors

#############################################################################
, PreferredWorkGroupSizeMultiple:

################################ OPENCL ERROR ###############################

Error executing function: clGetKernelWorkGroupInfo

Status error code: CL_INVALID_DEVICE (-33)

Please visit the following url for more information:

https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clGetKernelWorkGroupInfo.html#errors

#############################################################################
, PrivateMemSize:

################################ OPENCL ERROR ###############################

Error executing function: clGetKernelWorkGroupInfo

Status error code: CL_INVALID_DEVICE (-33)

Please visit the following url for more information:

https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clGetKernelWorkGroupInfo.html#errors

#############################################################################
 }WorkGroup { WorkGroupSize: 128, CompileWorkGroupSize: [0, 0, 0], LocalMemSize: 0, PreferredWorkGroupSizeMultiple: 1, PrivateMemSize: 0 }
EventList { inner: Array(EventArray { array: [Event(Event(0x7ff2eb40d620)), Event(Event(0x0)), Event(Event(0x0)), Event(Event(0x0)), Event(Event(0x0)), Event(Event(0x0)), Event(Event(0x0)), Event(Event(0x0))], len: 1 }) }
Event { CommandQueue: CommandQueue(0x7ff2eb503aa0), CommandType: WriteBuffer, ReferenceCount: 1, CommandExecutionStatus: Complete, Context: Context(0x7ff2eb603fd0) }

I checked after updating the dependencies, and ocl-core was at 0.4.1. Is that right?

from ocl.

c0gent avatar c0gent commented on May 21, 2024

My bad, I should have asked you to git clone/pull the master branch of this repo first (then do a cargo update). That should give you the latest changes to ocl-core directly from its repo. Double check the Cargo.toml to ensure that:

[replace]
...
"ocl-core:0.4.1" = { git = "https://github.com/cogciprocate/ocl-core" }

is near the bottom.

from ocl.

 avatar commented on May 21, 2024

I think that's what I've got:

ocl [master] » cat Cargo.toml | grep "ocl-core"
opencl_version_1_1 = ["ocl-core/opencl_version_1_1"]
opencl_version_1_2 = ["ocl-core/opencl_version_1_2"]
opencl_version_2_0 = ["ocl-core/opencl_version_2_0"]
opencl_version_2_1 = ["ocl-core/opencl_version_2_1"]
ocl-core = "0.4"
# ocl-core = { version = "0.4", git = "https://github.com/cogciprocate/ocl-core" }
# ocl-core = { version = "0.4", path = "../ocl-core" }
"ocl-core:0.4.1" = { git = "https://github.com/cogciprocate/ocl-core" }

from ocl.

c0gent avatar c0gent commented on May 21, 2024

Ok I must have missed something...

from ocl.

c0gent avatar c0gent commented on May 21, 2024

Found my mistake. Sorry about that. Try again when you can (cargo update should be all you need to do).

from ocl.

 avatar commented on May 21, 2024

Looks good!

Looping through avaliable platforms (1):
Platform { Profile: FULL_PROFILE, Version: OpenCL 1.2 (Nov  1 2016 21:34:57), Name: Apple, Vendor: Apple, Extensions: cl_APPLE_SetMemObjectDestructor cl_APPLE_ContextLoggingFunctions cl_APPLE_clut cl_APPLE_query_kernel_names cl_APPLE_gl_sharing cl_khr_gl_event } { Total Device Count: 2 }
Device (terse) { Name: Intel(R) Core(TM) i5-5250U CPU @ 1.60GHz, Vendor: Intel }
Device (terse) { Name: Intel(R) Iris(TM) Graphics 6100, Vendor: Intel Inc. }
Context { ReferenceCount: 8, Devices: [DeviceId(0x1024500), DeviceId(0xffffffff)], Properties: ContextProperties({Platform: Platform(PlatformId(0x7fff0000))}), NumDevices: 2 }
Queue { Context: Context(0x7fd48ac16090), Device: DeviceId(0xffffffff), ReferenceCount: 6, Properties: QUEUE_PROFILING_ENABLE }
Buffer Mem { Type: Buffer, Flags: MEM_READ_WRITE, Size: 8192, HostPtr: mem info unavailable, MapCount: 0, ReferenceCount: 2, Context: Context(0x7fd48ac16090), AssociatedMemobject: None, Offset: 0 }
Image { ElementSize: 4, RowPitch: 8192, SlicePitch: 0, Width: 2048, Height: 0, Depth: 0, ArraySize: 0, Buffer: None, NumMipLevels: 0, NumSamples: 0 } Mem { Type: Image1d, Flags: MEM_READ_WRITE, Size: 8192, HostPtr: mem info unavailable, MapCount: 0, ReferenceCount: 1, Context: Context(0x7fd48ac16090), AssociatedMemobject: None, Offset: 0 }
Sampler { ReferenceCount: 1, Context: Context(0x7fd48ac16090), NormalizedCoords: false, AddressingMode: None, FilterMode: Nearest }
Program (terse) { KernelNames: 'multiply', NumDevices: 2, ReferenceCount: 2, Context: Context(0x7fd48ac16090) }
Kernel { FunctionName: multiply, ReferenceCount: 1, Context: Context(0x7fd48ac16090), Program: Program(0x7fd48ac16a50), Attributes:  } WorkGroup { WorkGroupSize: unavailable (CL_INVALID_DEVICE), CompileWorkGroupSize: unavailable (CL_INVALID_DEVICE), LocalMemSize: unavailable (CL_INVALID_DEVICE), PreferredWorkGroupSizeMultiple: unavailable (CL_INVALID_DEVICE), PrivateMemSize: unavailable (CL_INVALID_DEVICE) }WorkGroup { WorkGroupSize: 128, CompileWorkGroupSize: [0, 0, 0], LocalMemSize: 0, PreferredWorkGroupSizeMultiple: 1, PrivateMemSize: 0 }
EventList { inner: Array(EventArray { array: [Event(Event(0x7fd48ac17b80)), Event(Event(0x0)), Event(Event(0x0)), Event(Event(0x0)), Event(Event(0x0)), Event(Event(0x0)), Event(Event(0x0)), Event(Event(0x0))], len: 1 }) }
Event { CommandQueue: CommandQueue(0x7fd48ac16600), CommandType: WriteBuffer, ReferenceCount: 1, CommandExecutionStatus: Complete, Context: Context(0x7fd48ac16090) }

from ocl.

c0gent avatar c0gent commented on May 21, 2024

Great. Thanks for your help :)

from ocl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.