set_status#
Sets the global VM status according to new value and returns the previous VM status.
Syntax
namespace oneapi::math::vm {
    oneapi::math::vm::status set_status(
        sycl::queue& exec_queue,
        oneapi::math::vm::status new_status);
} // namespace oneapi::math::vm
Description
The set_status function sets the global VM status to new value and returns the previous VM status code for a given queue.
The global VM status is a single value and it registers the bitwise-OR of status codes that happened inside VM functions run on the specific queue. For performance reasons, it might be done in non-atomic manner. The possible status codes are listed in the table below.
Status  | 
Description  | 
|---|---|
Successful Execution  | 
|
  | 
VM function execution completed successfully  | 
  | 
VM status not defined  | 
Warnings  | 
|
  | 
VM function execution completed successfully in a different accuracy mode  | 
Computational status codes  | 
|
  | 
Values are out of a range of definition producing invalid (QNaN) result  | 
  | 
Values cause divide-by-zero (singularity) computational errors and produce and invalid (QNaN or Inf) result  | 
  | 
An overflow happened during the calculation process  | 
  | 
An underflow happened during the calculation process  | 
Input Parameters
- exec_queue
 The queue where the routine should be executed.
- new_status
 Specifies the VM status to be set.
Output Parameters
- return value (old_status)
 Specifies the former VM status.
Parent topic: VM Service Functions