Skip to content

HTTPS clone URL

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

README.md

Unified Memory Example

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

There are four examples

  • dataElem.cu: original simple data structure example in vanilla CUDA C
  • dataElem_um.cu: modified example that uses Unified Memory to simplify data allocation.
  • dataElem_um_c++_1.cu: A C++ example that shows how to overload new and delete to use cudaMallocManaged().
  • dataElem_um_c++_2.cu: 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.