when are kernels loaded on to the device mem?

Does anyone know the ansewer to this questions:

When are kernels loaded on to the device mem? Are they loaded as soon as the host program starts or are they loaded only when invoked?

Please refer to http://forums.nvidia.com/index.php?showtopic=100948