GmFree

Product Support

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 product's AI Core

√

Atlas inference product's Vector Core

x

Atlas training products

√

Function

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);