GmFree
Function Usage
Frees the shared memory allocated by GmAlloc during runtime verification of the kernel function on the CPU.
Prototype
void GmFree(void *ptr)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
ptr |
Input |
Pointer to the shared memory to be freed. |
Returns
None
Availability
Constraints
The input pointer must be the pointer to the shared memory that is allocated through GmAlloc.
Example
AscendC::GmFree((void*)x);
Parent topic: Operator Debugging APIs