0PricingLogin
CUDA Academy · Lesson

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

  1. The __global__ Function Qualifier
  2. __device__ and __host__ Functions
  3. Separate Address Spaces
  4. The Life of a CUDA Program
← Back to CUDA Academy