Skip to content

Commit

Permalink
task-debuginfo-fix: - Fix to crash of debug_info for MKL2017
Browse files Browse the repository at this point in the history
  • Loading branch information
jczaja authored and ptbuilder committed Dec 3, 2016
2 parents 6368fcc + 08fceec commit 1ed431b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/caffe/blob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,9 @@ template <typename Dtype>
Dtype Blob<Dtype>::asum_data() const {
if (!data_) { return 0; }
switch (data_->head()) {
case SyncedMemory::SYNCED_PRV:
case SyncedMemory::HEAD_AT_PRV:
return caffe_cpu_asum( prv_data_count(), prv_data());
case SyncedMemory::HEAD_AT_CPU:
return caffe_cpu_asum(count_, cpu_data());
case SyncedMemory::HEAD_AT_GPU:
Expand Down

0 comments on commit 1ed431b

Please sign in to comment.