aclrtGetDeviceSatMode

Description

Obtains the output mode of the floating-point calculation result of the device corresponding to the current context. This API is synchronous.

The Ascend 310 AI Processor does not support this API in the current version.

The Ascend 910 AI Processor does not support this API in the current version.

The Ascend 310P AI Processor does not support this API in the current version.

Prototype

aclError aclrtGetDeviceSatMode(aclrtFloatOverflowMode *mode)

Parameters

Parameter

Input/Output

Description

mode

Output

Output mode of the floating-point calculation result.

Returns

0 on success; else, failure.