CUDA Memory

CUDA Managed Memory

This was how I was introduced to CUDA at first.

Managed memory gives you the illusion that the CPU and GPU are actually accessing memory from the same location.