GmFree

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

Atlas inference product AI Core

Atlas inference product Vector Core

x

Atlas training product

Function Usage

Frees the shared memory allocated by GmAlloc during runtime verification of the kernel function on the CPU.

Prototype

1
void GmFree(void *ptr)

Parameters

Parameter

Input/Output

Description

ptr

Input

Pointer to the shared memory to be freed.

Returns

None

Restrictions

The input pointer must be the pointer to the shared memory that is allocated through GmAlloc.

Example

1
AscendC::GmFree((void*)x);