【发布时间】:2014-03-16 15:04:21
【问题描述】:
我试图弄清楚如何将矩阵从 Matlab 传递到 C++ CUDA 文件 (*.ptx)。 我想在每个线程中以不同的方式处理矩阵!我绝对不想将矩阵拆分为不同的线程!我希望每个线程都有相同的矩阵!
我尝试过类似的方法:
_global_ void radialAverage(int* image[][]) {
...
}
但它没有用。我收到以下错误:
kernel.cu(8): error: an array may not have elements of this type
1 error detected in the compilation of "C:/Users/ADMINI~1/AppData/Loca/Temp/tmpxft_00000c44_00000000-8_kernel.cpp1.ii".
你能想出什么办法吗?或者有可能吗?
顺便说一句:我没有使用任何 C++ 库,只有 CUDA-Api。
【问题讨论】:
-
你能发布你收到的错误吗?
-
kernel.cu(8): error: an array may not have elements of this type 1 error detected in the compilation of "C:/Users/ADMINI~1/AppData/Local/Temp/tmpxft_00000c44_00000000 -8_kernel.cpp1.ii"。
标签: c++ windows matlab matrix cuda