【发布时间】:2013-12-04 14:54:21
【问题描述】:
我正在编写一个 CUDA 内核并想__restrict__ 我的一些参数。我收到错误消息:
"restrict" is not allowed
某些变量类型不允许吗?对于一些参数组合?因为一些编译器标志?因为我一直很淘气?
简化的内核签名:
template <typename T> foo(
const T a[],
__restrict__ SomeType b[],
const T c
) {
/* etc. */
}
【问题讨论】:
标签: c++ cuda compiler-errors restrict-qualifier