PaRemapped

Applicability

Product

Supported or Not

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

x

Atlas inference products

Atlas training products

Header File/Library File

  • Header file: #include <ge/ge_api.h>
  • Library file: libge_runner.so

Function Usage

Determines whether the memory can be quickly recovered when an uncorrectable error (UCE) occurs in the memory.

Prototype

1
Status PaRemapped(const uint64_t va, const uint64_t new_pa, const uint64_t len)

Parameters

Parameter

Input/Output

Description

va

Input

Virtual address where a UCE error occurs.

new_pa

Input

Physical address of the newly allocated memory. Reserved.

len

Input

Size of the memory where the UCE occurs.

Returns

Parameter

Type

Description

-

Status

SUCCESS: Memory segment corresponding to the virtual address can be quickly restored.

FAILED: Memory segment corresponding to the virtual address contains unrecoverable addresses.

PARAM_INVALID: An unidentified virtual address segment exists.

Restrictions

  • Before calling this API, you must call CompileGraph to compile the graph.
  • Host scheduling is not supported in a session. If a host scheduling graph exists in a session, a failure message is returned.
  • Absolute address segments are not supported in the allocation table of the static shape graph.
  • This API applies only to static graphs. You can call the IsStatic API in GetCompiledGraphSummary to check whether a graph is statically compiled.