Gets the VM mode.
uint64_t get_mode( queue& exec_queue );
get_mode supports the following devices: Host, CPU, and GPU.
The function get_mode function returns the global VM mode parameter that controls accuracy, handling of denormalized numbers, and error handling options. The variable value is a combination by bitwise OR ( | ) of the values listed in the following table.
Value of mode | Description |
---|---|
Accuracy Control | |
mode::ha | High accuracy versions of VM functions. |
mode::la | Low accuracy versions of VM functions. |
mode::ep | Enhanced performance accuracy versions of VM functions. |
Denormalized Numbers Handling Control | |
mode::ftzdazon | Faster processing of denormalized inputs is enabled. |
mode::ftzdazoff | Faster processing of denormalized inputs is disabled. |
Other | |
mode::not_defined | VM status not defined. |
See example below:
The queue where the routine should be executed.
Specifies the global VM mode.
accm = get_mode (exec_queue) & mode::accuracy_mask;
denm = get_mode (exec_queue) & mode::ftzdaz_mask;