[Campaign-news] New k-centers
Kai Kohlhoff
kohlhoff at stanford.edu
Thu Feb 11 17:07:37 PST 2010
> For your example, the kcenterGPU.cu file should not be included, but rather linked in during the link phase, and instead a kcenterGPU.h file included in the users' projects.
Hi Marc,
That all sounds good and I am looking forward to talking more about this tomorrow.
I just have a quick remark to the last bit of your email. I am not sure that using an extra .h file is even possible. Do you have an example? For all I know, it is not supported that kernels be split into a header and a source code file (e.g. keywords like __global__ are not supported in a separate header declaration). The .cu in principle IS the .h file containing both declaration and definition. It does work for your timing object, since you are not actually implementing GPU kernels, but I would be (very positively!) surprised if this would work for kcentersGPU. If you have a solution I am very eager to hear about it.
See you tomorrow,
Kai
-----------------------------------------------------
Kai Kohlhoff, PhD
Stanford University
School of Medicine, Bioengineering
Stanford, CA 94305-5448, USA
T: ++1 (650) 724 1575
E: kohlhoff at stanford.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://simtk.org/pipermail/campaign-news/attachments/20100211/cf26f129/attachment.html
More information about the Campaign-news
mailing list