aclMemType

typedef enum {
    ACL_MEMTYPE_DEVICE = 0, //Device memory
    ACL_MEMTYPE_HOST = 1,    //Host memory
     ACL_MEMTYPE_HOST_COMPILE_INDEPENDENT = 2   //Host memory
} aclMemType;
Although both ACL_MEMTYPE_HOST and ACL_MEMTYPE_HOST_COMPILE_INDEPENDENT identify the host memory, their usage is different.
  • ACL_MEMTYPE_HOST: When ACL_OP_JIT_COMPILE is disabled by the aclSetCompileopt call, the change of the operator input or output value does not trigger operator recompilation after this option is set. When ACL_OP_JIT_COMPILE is enabled by the aclSetCompileopt call, 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 after this option is set. If the operator compilation depends on the input or output value, the compilation may fail when this option is used.