Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Commit

Permalink
revert changes made in c4a0ad1 as it causes iteration time increase
Browse files Browse the repository at this point in the history
  • Loading branch information
ftian1 committed Mar 9, 2018
1 parent 2a30fe7 commit 43a2595
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/caffe/syncedmem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,8 @@ void SyncedMemory::set_prv_descriptor(shared_ptr<PrvMemDescr> descriptor,
} else {
if ((head_ != HEAD_AT_PRV) && same_data)
head_ = SYNCED_PRV;
else if (descriptor->prv_ptr())
head_ = HEAD_AT_PRV;
else
head_ = HEAD_AT_CPU;
head_ = HEAD_AT_PRV;
}

prv_descriptor_ = descriptor;
Expand Down

0 comments on commit 43a2595

Please sign in to comment.