Examples: if you write a C program for the CUDA environment, then:
Any user interaction will be performed through CPU C-functions
Graphically:
The program execution will remain in the CPU code portion as long as the program does not need to use GPU code
Note:
Meaning:
(because the user can only interact with the CPU program code):
The GPU function can now access a copy of the data in the device memory !!!
Now the CPU program can display the result to the user !!!