【发布时间】:2017-05-24 14:52:09
【问题描述】:
我有一个在英特尔平台上运行的 OpenCL C++ 代码。我确实有一个想法,即内核端的结构中不接受指针。但是,我有一个类在其中使用自引用指针选项。现在,我可以使用一个结构并在主机端复制相同的结构,但我不能在设备端做同样的事情。
例如如下:
Class Classname{
Classname *SameClass_Selfreferencingpointer;
}
On the Host side I have done the same for the structure as well:
struct Structurename{
Structurename *SameStructure_Selfreferencingpointer;
}
有人可以为设备端的这种实现提供一个替代选项吗?
提前感谢您的帮助。
【问题讨论】:
标签: opencl gpu intel gpgpu self-reference