aclrtcCompileProg
Supported Products
|
Product |
Supported |
|---|---|
|
|
√ |
|
|
√ |
|
|
x |
|
|
x |
|
|
x |
|
|
x |
Function
A compilation API that compiles a specified program.
Prototype
1
|
aclError aclrtcCompileProg(aclrtcProg prog, int numOptions, const char **options) |
Parameters
Returns
aclError is of the int type. For details, see RTC Error Codes.
Restrictions
None
Example
1 2 3 4 |
aclrtcProg prog; const char *options[] = {"--npu-arch=dav-2201"}; int numOptions = sizeof(options) / sizeof(options[0]); aclError result = aclrtcCompileProg(prog, numOptions, options); |
Parent topic: RTC