aclMemType
Memory Type |
Description |
|---|---|
ACL_MEMTYPE_DEVICE = 0 |
Device memory |
ACL_MEMTYPE_HOST = 1 |
Host memory. |
ACL_MEMTYPE_HOST_COMPILE_INDEPENDENT = 2 |
Host memory. |
Although both ACL_MEMTYPE_HOST and ACL_MEMTYPE_HOST_COMPILE_INDEPENDENT identify the host memory, their usage is different.
- ACL_MEMTYPE_HOST_COMPILE_INDEPENDENT: The change of the operator input or output value does not trigger operator recompilation. If the operator compilation depends on the input or output value, the compilation may fail when this option is used.
Parent topic: Data Types and Operation APIs