aclrtCheckMemType
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Description
Checks the device memory type.
Prototype
aclError aclrtCheckMemType(void** addrList, uint32_t size, uint32_t memType, uint32_t *checkResult, uint32_t reserve)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
addrList |
Input |
Device memory address array. |
size |
Input |
Size of the addrList array. |
memType |
Input |
Device memory type. The following macros are supported:
If the addrList array contains different types of memory addresses, the value of memType must be set to bitwise OR of the memory types. For example, RT_MEM_MASK_DEV_TYPE | RT_MEM_MASK_DVPP_TYPE. |
checkResult |
Output |
Whether the memory address type in the addrList array matches the value of memType.
|
reserve |
Input |
Reserved. The value is fixed at 0. |
Returns
0 on success; else, failure. For details, see aclError.