get_mode

Gets the VM mode.

Syntax

namespace oneapi::mkl::vm {

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

} // namespace oneapi::mkl::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::mkl::vm::mode::ha

High accuracy versions of VM functions.

oneapi::mkl::vm::mode::la

Low accuracy versions of VM functions.

oneapi::mkl::vm::mode::ep

Enhanced performance accuracy versions of VM functions.

oneapi::mkl::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.