GmFree
Product Support
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
x |
|
√ |
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); |
Parent topic: CPU Twin Debugging