In cuda we can create header files with .cuh extension and we can call the functions from anywhere like,
__device__ void doSomething()
{
....................
}
void doSomthingOnHost()
{
....................
}
these two functions are public. How can i make the host function to private?
I find that what works best for me is to
To make host functions private in this scheme, just don’t put prototypes for them in the header… a pretty neat scheme if you ask me.