Skip to main content

M_getDeviceLabel

Function M_getDeviceLabel 

Source
pub unsafe extern "C" fn M_getDeviceLabel(
    device: *const M_Device,
) -> *const c_char
Expand description

Gets the label of a device (e.g., “cpu” or “gpu”).

@param device The device.

@returns A string containing the device label. The returned string is owned by the device and should not be freed. Returns NULL if the device is invalid.