|
产品 |
是否支持 |
|---|---|
|
Ascend 950PR/Ascend 950DT |
√ |
|
|
√ |
|
|
√ |
|
|
x |
|
|
x |
|
|
x |
|
|
x |
编译接口,编译指定的程序。
1
|
aclError aclrtcCompileProg(aclrtcProg prog, int numOptions, const char **options) |
|
参数名 |
输入/输出 |
描述 |
|---|---|---|
|
prog |
输入 |
运行时编译程序的句柄。 |
|
numOptions |
输入 |
编译选项数量。 |
|
options |
输入 |
编译选项数组,保存具体的编译选项(默认添加-std=c++17)。 支持的编译选项可以参考毕昇编译器编译选项。 |
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); |