Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions sycl/source/detail/accessor_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,18 @@ class __SYCL_EXPORT AccessorImplHost {
MElemSize(Other.MElemSize), MOffsetInBytes(Other.MOffsetInBytes),
MIsSubBuffer(Other.MIsSubBuffer), MPropertyList(Other.MPropertyList) {}

AccessorImplHost &operator=(const AccessorImplHost &Other) {
MAccData = Other.MAccData;
MAccessMode = Other.MAccessMode;
MSYCLMemObj = Other.MSYCLMemObj;
MDims = Other.MDims;
MElemSize = Other.MElemSize;
MOffsetInBytes = Other.MOffsetInBytes;
MIsSubBuffer = Other.MIsSubBuffer;
MPropertyList = Other.MPropertyList;
return *this;
}

// The resize method provides a way to change the size of the
// allocated memory and corresponding properties for the accessor.
// These are normally fixed for the accessor, but this capability
Expand Down
2 changes: 0 additions & 2 deletions sycl/test/basic_tests/accessor/host_acc_opt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
// CHECK: define {{.*}}foo{{.*}} {
// CHECK-NOT: call
// CHECK-NOT: invoke
// CHECK-NOT: call
// CHECK-NOT: invoke
// CHECK: load <4 x i32>
// CHECK-NOT: call
// CHECK-NOT: invoke
Expand Down