Skip to content

Commit

Permalink
Merge pull request #75 from lanl/jmm/fix-get-on-device
Browse files Browse the repository at this point in the history
fix getondevice
  • Loading branch information
Yurlungur authored Aug 2, 2023
2 parents 17523b1 + b2fdc02 commit cce86fe
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions spiner/databox.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,11 +307,8 @@ class DataBox {
dim(3), dim(2), dim(1)};
a.copyShape(*this);
// set correct allocation status of the new databox
if (PortsOfCall::EXECUTION_IS_HOST) {
a.status_ = DataStatus::AllocatedHost;
} else {
a.status_ = DataStatus::AllocatedDevice;
}
// note this is ALWAYS device, even if host==device.
a.status_ = DataStatus::AllocatedDevice;
return a;
}

Expand Down

0 comments on commit cce86fe

Please sign in to comment.