__device__ funcitons in cudafy

May 5, 2015 at 7:18 AM
Is it possible to have "device functions" in cudafy i.e. functions who are equivalent to the functions using the device keyword in cuda ?
Coordinator
May 6, 2015 at 12:44 PM
All functions with a return type are automatically made into device functions. You can also explicitly control this by using the appropriate attribute. Have a good look a the two example projects.
All the best,
Nick
May 17, 2015 at 10:25 AM
Hi, thanks for the reply!
I will have a look at the examples more closely, I must have missed it the first time.

Is it the CudafyByExample and CudafyExamples projects you are referring to? If so do
you think you can point me to which part of the projects where device functions are described?
Coordinator
May 18, 2015 at 4:03 AM
I'm quite sure you are capable of finding this yourself ;-) Take the time to look through the user manual and code, the investment will pay off