Skip to content

Commit

Permalink
fix ci && test=develop
Browse files Browse the repository at this point in the history
  • Loading branch information
cjld committed Jan 20, 2019
1 parent 0c5c561 commit e5004f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions paddle/fluid/operators/reader/buffered_reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ void BufferedReader::ReadAsync(size_t i) {
memory::Copy(boost::get<platform::CUDAPlace>(place_), gpu_ptr,
boost::get<platform::CUDAPinnedPlace>(cpu_place),
cpu_ptr, size, stream);
else if ((platform::is_gpu_place(cpu_place)))
memory::Copy(boost::get<platform::CUDAPlace>(place_), gpu_ptr,
boost::get<platform::CUDAPlace>(cpu_place), cpu_ptr,
size, stream);
else
// if cpu place is not pinned, async copy is slower than sync copy,
// so we use sync copy instead.
Expand Down

0 comments on commit e5004f3

Please sign in to comment.