do all caffe_copy() as UVA mem copy, and drop caffe_gpu_copy()
authorEvan Shelhamer <shelhamer@imaginarynumber.net>
Sat, 28 Jun 2014 04:25:36 +0000 (21:25 -0700)
committerEvan Shelhamer <shelhamer@imaginarynumber.net>
Fri, 4 Jul 2014 00:14:12 +0000 (17:14 -0700)
commitaaa9f24d369798cfa268f465ec5a1c35257ed500
tree9da9a0672d8167ad2a79cf57a71a8b815102b08e
parent803a7a94f3033e4d389de57c18524c98ac744b3f
do all caffe_copy() as UVA mem copy, and drop caffe_gpu_copy()

Do all memory copies by `cudaMemcpy` in UVA mode so that the same
`caffe_copy()` interface works for all transfers.

`cudaMemcpy()` is used in lieu of BLAS copies because they do not
understand UVA.

Drop the now unnecessary `caffe_gpu_copy()` since location of the
pointers is now irrelevant to the interface.
include/caffe/util/math_functions.hpp
src/caffe/util/math_functions.cpp