Currently, opencl3 provides the ability to create a Device from cl_device_id, via the new function, but this functionality is not provided for Context or CommandQueue. Making their constructors public, or allowing passing &Device along side a cl_context or cl_command_queue would both be adequate solutions.
Currently, opencl3 provides the ability to create a
Devicefromcl_device_id, via thenewfunction, but this functionality is not provided forContextorCommandQueue. Making their constructors public, or allowing passing&Devicealong side acl_contextorcl_command_queuewould both be adequate solutions.