ein*_*ica 1 c++ cuda compiler-errors restrict-qualifier
我正在写一个CUDA内核并想要__restrict__
我的一些参数.我收到错误消息:
"restrict" is not allowed
是否允许某些变量类型?对于某些参数组合?因为有些编译器标志?因为我一直顽皮?
简化的内核签名:
template <typename T> foo(
const T a[],
__restrict__ SomeType b[],
const T c
) {
/* etc. */
}
Run Code Online (Sandbox Code Playgroud)
您只能__restrict__
在指针类型上使用.这也是唯一__restrict__
有意义的背景.
归档时间: |
|
查看次数: |
2672 次 |
最近记录: |