Finalize

Applicability

Product

Supported (√/x)

Atlas 350 Accelerator Card

x

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

x

Atlas inference product

x

Atlas training product

x

Note: For Atlas A2 training product/Atlas A2 inference product, only the Atlas 800I A2 inference server and A200I A2 Box heterogeneous subrack are supported.

Function Description

Cleans up HIXL resources.

Prototype

1
void Finalize()

Parameters

None

Example

Click GitCode, select the matching version, and obtain the sample from the examples/cpp directory.

Returns

None

Exception Handling

None

Restrictions

  • This API must be used in conjunction with Initialize.
  • You are advised to disconnect the link and deregister the memory before calling Finalize.
  • The server needs to call this API after all clients have disconnected. If the server exits prematurely, an error will occur during client disconnection and data transmission.
  • When the client needs to perform remote read and write operations on the server's address, the server must wait until these operations are completed before calling this API; otherwise, the operation will fail.
  • This API cannot be called concurrently with other APIs.