Function dcv_color_primitives::describe_acceleration
source · [−]Expand description
Returns a description of the algorithms that are best for the running cpu and available instruction sets
Errors
NotInitialized
if the library was not initialized before
Examples
use dcv_color_primitives as dcp;
dcp::initialize();
match dcp::describe_acceleration() {
Ok(description) => println!("{}", description),
Err(error) => println!("Unable to describe the acceleration: {}", error),
}
// => {cpu-manufacturer:Intel,instruction-set:Avx2}
When initialize
is not called:
use dcv_color_primitives as dcp;
match dcp::describe_acceleration() {
Ok(description) => println!("{}", description),
Err(error) => println!("Unable to describe the acceleration: {}", error),
}
// => Unable to describe the acceleration: NotInitialized