Product |
Supported (√/x) |
|---|---|
√ |
|
x |
|
√ |
|
√ |
|
x |
|
x |
|
x |
Obtains the device memory address registered and mapped by the acl.rt.host_register or acl.rt.host_register_v2 API. This address cannot be used for memory operations, such as memory copy.
1 | aclError aclrtHostGetDevicePointer(void *pHost, void **pDevice, uint32_t flag) |
1 | ptr_device, ret =acl.rt.host_get_device_pointer (ptr_host, flag) |
Parameter |
Description |
|---|---|
ptr_host |
Host memory address mapped and registered by calling acl.rt.host_register or acl.rt.host_register_v2. |
flag |
Reserved. The value is fixed at 0. |
Return Value |
Description |
|---|---|
ptr_device |
Int, device memory address. |
ret |
Int, 0 on success; else failure. |