Comments (10)
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.
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.
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.
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.
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.
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.
Ok I must have missed something...
from ocl.
Found my mistake. Sorry about that. Try again when you can (cargo update should be all you need to do).
from ocl.
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.
Great. Thanks for your help :)
from ocl.
Related Issues (20)
- double drop may happen upon panic in `EventList as std::convert::From<[E; n]>>::from` HOT 1
- Issues with cl_h.rs in the cl-sys crate
- EventList::From for Into<Event> slices can cause double-drop HOT 1
- Remove dependency without license HOT 1
- rustc_version below 0.2 is no longer available, which breaks building this crate HOT 1
- error: failed to select a version for the requirement `rustc_version = "^0.1"` HOT 1
- Documentation - unclear what use_host_slice does/how to use it HOT 2
- The test program on Ubuntu 21.10 may not be using the GPU HOT 1
- Lifetime bounds in as_slice and as_slice_mut in MemMap HOT 1
- Struct with #[repr(C)] are not necessarily compatible with OpenCL layouts HOT 6
- Result in example file change when removing assert_eq!() HOT 2
- Shared Virtual Memory (SVM) support? HOT 2
- Currently event's future does not work with the new version of tokio
- error: getting `STATUS_ACCESS_VIOLATION` in `Device::list()` HOT 9
- unmet dependencies HOT 1
- How to resolve "fatal error LNK1181: cannot open input file 'OpenCL.lib'" HOT 2
- Couldn't compile : "Couldn't find 'write' in core" after some update. HOT 7
- The large global_id confuses me HOT 6
- How do I set global_work_size and local_work_size? HOT 3
- Help `u16` to `Char16` conversion HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ocl.