Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Copies memory.
1 | aclError aclrtMemcpy(void *dst, size_t destMax, const void *src, size_t count, aclrtMemcpyKind kind) |
1 | ret = acl.rt.memcpy(dst, dest_max, src, count, kind) |
Parameter |
Description |
|---|---|
dst |
Int, pointer address of the destination memory address. |
destMax |
Int, memory size in bytes in the destination address |
src |
Int, pointer address of the source memory address. |
count |
Int, size in bytes to copy. |
kind |
Int, memory copy type, reserved. The enumerated values are invalid. The system determines whether the data from the source address can be copied to the destination address based on the pointer addresses of the source and destination memory addresses. If the data cannot be copied to the destination address, the system returns an error.
|
Return Value |
Description |
|---|---|
ret |
Int, error code. 0 on success; else, failure. |
This restriction applies to the following models: