luqmana / rust-opencl

OpenCL bindings for Rust.
Other
170 stars 42 forks source link

Multiple-device support for high-level api #65

Closed greyhill closed 9 years ago

greyhill commented 9 years ago

Add hl::Context::create_context(&[Device]), which creates a context using all the given devices. I wasn't sure what to name it (new?).

The new create_context has the same, pretty basic error handling as Device::create_context().

greyhill commented 9 years ago

Sorry, messed up the PR. Just meant to submit a few changes.