wyegelwel / snow

Other
48 stars 9 forks source link

Cuda supports function pointers #3

Closed wyegelwel closed 10 years ago

wyegelwel commented 10 years ago

Just a heads up, Cuda supports function pointers in 2.x architectures as of Cuda 3.2. Thought you might like to know. Here is a nice forum post that explains how to use them: https://devtalk.nvidia.com/default/topic/457094/how-can-i-use-device-function-%20pointer-in-cuda-/

ericjang commented 10 years ago

there's another code example in /contrib/projects/cuda5-toolkit/samples/6_Advanced/FunctionPointers, if it helps