GmFree
Supported Products
Product |
Supported/Unsupported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
x |
|
√ |
Functions
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
Constraints
The input pointer must be the pointer to the shared memory that is allocated through GmAlloc.
Examples
1 | AscendC::GmFree((void*)x); |
Parent topic: CPU twin debugging