产品 |
是否支持 |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
在当前线程中使用指定Stream上的Device资源限制。如果多次调用本接口设置Stream,将以最后一次设置为准。
1 | aclError aclrtUseStreamResInCurrentThread(aclrtStream stream) |
参数名 |
输入/输出 |
说明 |
|---|---|---|
stream |
输入 |
指定Stream。类型定义请参见aclrtStream。 需先调用aclrtSetStreamResLimit接口设置该Stream上的Device资源限制。 |
返回0表示成功,返回其他值表示失败,请参见aclError。