C函数原型 |
aclError aclrtCmoAsync(void *src, size_t size, aclrtCmoType cmoType, aclrtStream stream) |
---|---|
Python函数 |
ret = acl.rt.cmo_async(src, size, cmo_type, stream) |
函数功能 |
实现Device上的Cache内存操作。 |
输入说明 |
src:int,待操作的Device内存的地址。 size:int,待操作的Device内存大小,单位Byte。 cmo_type:int,Cache内存操作类型。参考aclrtCmoType 当前仅支持ACL_RT_CMO_TYPE_PREFETCH(内存预取)。 stream:int,指定stream。 |
返回值说明 |
ret:int,返回0表示成功,返回其他值表示失败。 |
约束说明 |