title: Efficiently transfer large file (up to 2GB) to CUDA GPU?
body: <p>I'm working on an a GPU accelerated program that requires the reading of an entire file of variable size. My question, what is the optimal number of bytes to read from a file and transfer to a coprocessor (CUDA device)?</p>
  
  <p>These files could be as large as 2GiB, so creating a buffer of that size doesn't seem like the best idea.</p>