我正在编写一个 CUDA 内核并想要__restrict__
我的一些参数。我收到错误消息:
"restrict" is not allowed
某些变量类型不允许吗?对于一些参数组合?因为一些编译器标志?因为我调皮?
简化的内核签名:
template <typename T> foo(
const T a[],
__restrict__ SomeType b[],
const T c
) {
/* etc. */
}
我正在编写一个 CUDA 内核并想要__restrict__
我的一些参数。我收到错误消息:
"restrict" is not allowed
某些变量类型不允许吗?对于一些参数组合?因为一些编译器标志?因为我调皮?
简化的内核签名:
template <typename T> foo(
const T a[],
__restrict__ SomeType b[],
const T c
) {
/* etc. */
}