clu_state() = any()
apply_kernel_args/2 | |
build_binary/2 | |
build_source/2 | Create and build a OpenCL program from a string. |
build_source_file/2 | |
compile_file/1 | |
context/1 | |
device/1 | |
device_list/1 | |
get_program_binaries/1 | Retrieve the binaries associated with a program build. |
setup/0 | setup a clu context with all devices. |
setup/1 | setup the platform and an initial context using devices of type DevType. |
teardown/1 | Release the context setup by clu:setup(). |
wait_complete/1 |
apply_kernel_args(Kernel, Args) -> any()
build_binary(E, X2) -> any()
build_source(E::clu_state(), Source::iodata()) -> {ok, cl_program()} | {error, {cl_error(), Logs}}
Create and build a OpenCL program from a string.
build_source_file(E, File) -> any()
compile_file(File) -> any()
context(E) -> any()
device(E) -> any()
device_list(E) -> any()
get_program_binaries(Program::cl_program()) -> {ok, {[cl_device_id()], [binary()]}}
Retrieve the binaries associated with a program build. the binaries may be cached for later use with build_binary/2.
setup() -> clu_state()
setup a clu context with all devices.
setup(DevType::cl_device_type()) -> clu_state()
setup the platform and an initial context using devices of type DevType. Setup currently use the first platform found only.
teardown(E::clu_state()) -> ok | {error, cl_error()}
Release the context setup by clu:setup().
wait_complete(Event) -> any()
Generated by EDoc, Oct 8 2019, 16:14:17.