UnregisterExternalAllocator

Applicability

Product

Supported

Atlas 350 Accelerator Card

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

Atlas training product

Header File/Library File

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

Function Usage

Destroys the allocator registered by the user based on the stream. This applies to the scenario where the user's memory pool is used.

Prototype

1
Status UnregisterExternalAllocator(const void *const stream) const

Parameters

Parameter

Input/Output

Description

stream

Input

Stream on which the allocator to be destroyed is located.

Returns

Parameter

Type

Description

-

Status

SUCCESS: The setting is successful.

FAILED: The setting fails.

Restrictions

  • Before destroying an allocator, call this API to deregister the allocator.
  • If the stream to be deregistered does not exist or this API is called multiple times to deregister the stream, no operation will be performed and a success message is returned.