Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Unified Memory Example

This is an example of using Unified Memory from CUDACasts Episode #X.

There are four examples

  • original simple data structure example in vanilla CUDA C
  • modified example that uses Unified Memory to simplify data allocation.
  • A C++ example that shows how to overload new and delete to use cudaMallocManaged().
  • A more complete C++ example that creates a managed String class and uses it to simplify the unified memory management inside our data structure.
Something went wrong with that request. Please try again.