aclrtcGetBinDataSize
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
x |
√ |
|
√ |
|
x |
|
x |
|
x |
|
x |
Function Usage
Obtains the size of the compiled binary data. This API is used to allocate memory space when the aclrtcGetBinData API is used to obtain the binary data.
Prototype
1 | aclError aclrtcGetBinDataSize(aclrtcProg prog, size_t *binDataSizeRet) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
prog |
Input |
Handle to the runtime compiler. |
binDataSizeRet |
Output |
Size of the binary data on the device after compilation. |
Returns
aclError is an int variable. For details, see RTC Error Codes.
Restrictions
None
Examples
1 2 3 | aclrtcProg prog; size_t binDataSizeRet = 0; aclError result = aclrtcGetBinDataSize(prog, &binDataSizeRet); |
Parent topic: RTC