ExCubecl.NIF (ExCubecl v0.2.2)

Copy Markdown View Source

NIF stubs for the CubeCL Rust backend.

Each function delegates to the Rust NIF implementation. If the NIF is not loaded, returns {:error, :nif_not_loaded}.

Summary

Functions

buffer_dtype(id)

buffer_free(id)

buffer_new(data, shape, dtype)

buffer_read(id)

buffer_shape(id)

buffer_size(id)

device_count()

device_info()

kernel_list()

kernel_run(name, inputs, output, params)

pipeline_add(pipeline_id, command)

pipeline_free(pipeline_id)

pipeline_new()

pipeline_run(pipeline_id)

poll(command_id)

submit(command)

wait(command_id)