Skip to content

Commit

Permalink
fix non-sycl tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Razdoburdin committed Oct 17, 2024
1 parent 2efde4e commit fd17dfa
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions plugin/sycl/common/host_device_vector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,11 @@ class HostDeviceVectorImpl {
DeviceOrd Device() const { return device_; }

T* DevicePointer() {
CHECK_EQ(device_.IsSycl(), true);
SyncDevice(GPUAccess::kWrite);
return data_d_->Data();
}

const T* ConstDevicePointer() {
CHECK_EQ(device_.IsSycl(), true);
SyncDevice(GPUAccess::kRead);
return data_d_->DataConst();
}
Expand Down

0 comments on commit fd17dfa

Please sign in to comment.