Separate Address Spaces
Why a host pointer is invalid on the device.
Two Separate Memories
The CPU and GPU each own their own RAM. They do not share one address space, and that single fact shapes all of CUDA. 🧠
What an Address Means
A pointer is just a number naming a slot in memory. That slot only makes sense in the address space where it was created.
All lessons in this course
- The __global__ Function Qualifier
- __device__ and __host__ Functions
- Separate Address Spaces
- The Life of a CUDA Program