aclrtcCompileProg
产品支持情况
|
产品 |
是否支持 |
|---|---|
|
|
√ |
|
|
√ |
|
|
x |
|
|
x |
|
|
x |
|
|
x |
功能说明
编译接口,编译指定的程序。
函数原型
1
|
aclError aclrtcCompileProg(aclrtcProg prog, int numOptions, const char **options) |
参数说明
返回值说明
aclError为int类型变量,详细说明请参考RTC错误码。
约束说明
无
调用示例
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); |
父主题: RTC