aclrtMemInvalidate
Description
Invalidates the cache.
In this version, you do not need to care about the cache coherence between the CPU and NPU and therefore this API is unused in this version.
Prototype
aclError aclrtMemInvalidate(void *devPtr, size_t size)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
devPtr |
Input |
Pointer to the start address of the DDR memory that needs cache invalidation. |
size |
Input |
DDR memory size in bytes. Must not be 0. |
Returns
The value 0 indicates success, and other values indicate failure. For details, see aclError.
Parent topic: Memory Management