Crate zyx_opencl

source ·
Expand description

OpenCL backend for zyx

Initialize backend. You can use builder if you want to change settings of the backend.

let dev = zyx_opencl::device()?;
let dev = zyx_opencl::device_builder().build()?;

For README, quick tutorial and source code, please visit [https://www.github.com/zk4x/zyx].

For more details, there is a book.

Structs§

Enums§

Functions§

  • Create new OpenCL backend using first OpenCL platform and all hardware devices in that platform.
  • Create new OpenCL backend using builder.
  • Save all tensors into file. All parameters must be realized before calling this function, otherwise it will panic.