cubecl-core 0.11.0-pre.1

CubeCL core create
Documentation
1
2
3
4
5
6
7
8
use crate::prelude::CubePrimitive;
use cubecl_ir::{Instruction, Metadata, Scope, Value};

pub fn expand_buffer_length_native(scope: &Scope, list: Value) -> Value {
    let out = scope.create_value(usize::__expand_as_type(scope));
    scope.register(Instruction::new(Metadata::BufferLength { list }, out));
    out
}