aclrtMemFlush
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function
Flushes cache data to the DDR and 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
1 | aclError aclrtMemFlush(void *devPtr, size_t size) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
devPtr |
Input |
Pointer to the start address of the DDR memory to be flushed. |
size |
Input |
Size of the DDR memory to be flushed, in bytes. The size cannot be 0. |
Returns
0 on success; otherwise, failure. For details, see aclError.
Parent topic: Memory Management