Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does Cuda kernel code reside on nvidia GPU?

Tags:

cuda

nvidia

I have gone through Cuda programming guide but still not clear where does cuda kernel reside on GPU? In other words, in which memory segment does it reside?

Also, How do I know what is the max kernel size supported by my device? Whether max kernel size depend on number of simultaneous kernels loaded on device?

like image 841
LionHeart Avatar asked Feb 25 '11 19:02

LionHeart


1 Answers

The instructions are stored in global memory that is inaccessible to the user but are prefetched into an instruction cache during execution.

The maximum kernel size is stated in the Programming Guide in section G.1: 2 million instructions.

like image 61
tkerwin Avatar answered Sep 21 '22 13:09

tkerwin