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§

OpenCL
OpenCL backend
OpenCLBuilder
OpenCL backend builder
Tensor
Tensor is the core object of zyx. It is multidimensional array.

Enums§

DType
DType of tensor
ZyxError
ZyxError

Functions§

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