Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Reserves virtual memory.
1 | aclError aclrtReserveMemAddress(void **virPtr, size_t size, size_t alignment, void *expectPtr, uint64_t flags) |
1 | vir_ptr, ret = acl.rt.reserve_mem_address(size, alignment, expect_ptr, flags) |
Parameter |
Description |
|---|---|
size |
Int, size of the virtual address space, in bytes. Must not be 0. |
alignment |
Int, alignment value of the virtual address. This parameter is reserved and can only be set to 0. |
expectPtr |
Int, start address of the virtual address space to be returned. This parameter is reserved and can only be set to 0. |
flags |
Int, huge page/common page flag. This parameter is reserved. The recommended value is 0. |
Return Value |
Description |
|---|---|
virPtr |
Int, pointing to the address of the allocated virtual address space. |
ret |
Int, error code. 0 on success; else, failure. |
Currently, the following models support the Ascend RC form: