HcclCommUnsetMemoryRange

This API is for trial use and may be changed in later versions. Therefore, it cannot be used in commercial products.

Applicability

Product

Supported

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

☓

Atlas 200I/500 A2 inference products

☓

Atlas inference products

☓

Atlas training products

☓

For Atlas A2 training products/Atlas A2 inference products, only the Atlas 800T A2 training server, Atlas 900 A2 PoD cluster basic unit, and Atlas 200T A2 Box16 heterogeneous subrack are supported.

Description

Notifies an HCCL communicator to invalidate the reserved virtual memory.

Prototype

1
HcclResult HcclCommUnsetMemoryRange(HcclComm comm, void *baseVirPtr)

Parameters

Parameter

Input/Output

Description

comm

Input

HCCL communicator. You are advised to use the largest-scale communicator within the server, that is, the communicator that covers the maximum number of devices.

baseVirPtr

Input

Base address of reserved virtual memory.

The specified base address must have been successfully executed by calling HcclCommSetMemoryRange. Otherwise, an error is reported.

Returns

HcclResult: HCCL_SUCCESS on success; else, failure.

Constraints

If there is still active memory in the virtual address space, this API fails to be executed.