aclrtSetDeviceSatMode

Description

Sets 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.

Restrictions

Prototype

aclError aclrtSetDeviceSatMode(aclrtFloatOverflowMode mode)

Parameters

Parameter

Input/Output

Description

mode

Input

Output mode of the floating-point calculation result.

Returns

0 on success; else, failure.