code transfer between host and gpu Please help!!!

Hey all!

Can somebody explain how the code gets into the gpu? I found nothing in the PG. There must be a datatranfers of code into the program memory of the gpu… When happens this transfer? One time before program execution or before each kernel launch?

Thanks in advance!

Best regards