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: In fuzzy compilation scenarios, the change of the operator input or output value does not trigger operator recompilation. In precise compilation scenarios, the change of the operator input or output value triggers operator recompilation.
- ACL_MEMTYPE_HOST_COMPILE_INDEPENDENT: The change of the operator input or output value does not trigger operator recompilation either in fuzzy or precise compilation scenarios. 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