aclrtGetVersion
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Description
Returns the version number of acl APIs. The version number is formatted as A.B.C, where A indicates incompatible changes, B indicates new APIs, and C indicates the patch version.
Prototype
1 | aclError aclrtGetVersion(int32_t *majorVersion, int32_t *minorVersion, int32_t *patchVersion) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
majorVersion |
Output |
Pointer to the major version number. The value starts from 1 and is incremented by 1 with each incompatible API change. |
minorVersion |
Output |
Pointer to the minor version number. The value starts from 0 and is incremented by 1 with each new API. |
patchVersion |
Output |
Pointer to the patch version number. The value starts from 0 and is incremented for bug fixes. The value is incremented by 1 when majorVersion and minorVersion remain unchanged. When majorVersion and minorVersion increase, the value of patchVersion is generally 0. |
Returns
0 on success; otherwise, failure. For details, see aclError.