CUDA programming before the introduction of Unified Memory

  • For completeness sake, I like to discuss how to write CUDA programs without using Unified Memory

  • Recall: the host memory and device memory are separate memory systems:

  • CUDA programs before the introduction of Unified Memory:

    • Uses the host function cudaMemcopy( ) to transfer data between CPU (host) memory and GPU (device) memory