get_mode

get_mode#

Gets the VM mode.

Syntax

namespace oneapi::math::vm {

    oneapi::math::vm::mode get_mode(
        sycl::queue& exec_queue);

} // namespace oneapi::math::vm

Description

The function get_mode function returns the global VM mode parameter that controls accuracy for a given queue.

Value of mode

Description

Accuracy Control

oneapi::math::vm::mode::ha

High accuracy versions of VM functions.

oneapi::math::vm::mode::la

Low accuracy versions of VM functions.

oneapi::math::vm::mode::ep

Enhanced performance accuracy versions of VM functions.

oneapi::math::vm::mode::not_defined

VM mode not defined. It means that no special provisions for accuracy have been made for this queue. See set_mode for details.

Input Parameters

exec_queue

The queue where the routine should be executed.

Output Parameters

return value

The current global VM mode for the queue exec_queue.