device int x ; device long int y ; device unsigned int z ;
I want to use them in my kernel so that these variables should retain their values across several kernel launches .
Do I have pass to them as arguments during kernel launch ?? Do I have to allocate them in device memory using cudaMalloc?
If so what is the syntax for it ? cudaMalloc(&x,sizeof(int)) ,etc. will work ?
If I don’t pass them as arguments to kernels , can I access them from kernel accurately ???
device int x ; device long int y ; device unsigned int z ;
I want to use them in my kernel so that these variables should retain their values across several kernel launches .
Do I have pass to them as arguments during kernel launch ?? Do I have to allocate them in device memory using cudaMalloc?
If so what is the syntax for it ? cudaMalloc(&x,sizeof(int)) ,etc. will work ?
If I don’t pass them as arguments to kernels , can I access them from kernel accurately ???