@@ -1200,8 +1200,8 @@ class __SYCL_SPECIAL_CLASS accessor :
1200
1200
const property_list &PropertyList = {},
1201
1201
const detail::code_location CodeLoc = detail::code_location::current ())
1202
1202
: accessor (BufferRef, PropertyList, CodeLoc) {
1203
- adjustAccPropsInBuf (detail::getSyclObjImpl (BufferRef).get ());
1204
- }
1203
+ adjustAccPropsInBuf (detail::getSyclObjImpl (BufferRef).get ());
1204
+ }
1205
1205
1206
1206
template <typename T = DataT, int Dims = Dimensions, typename AllocatorT,
1207
1207
typename TagT, typename ... PropTypes,
@@ -1215,8 +1215,8 @@ class __SYCL_SPECIAL_CLASS accessor :
1215
1215
{},
1216
1216
const detail::code_location CodeLoc = detail::code_location::current ())
1217
1217
: accessor (BufferRef, PropertyList, CodeLoc) {
1218
- adjustAccPropsInBuf (detail::getSyclObjImpl (BufferRef).get (), PropertyList);
1219
- }
1218
+ adjustAccPropsInBuf (detail::getSyclObjImpl (BufferRef).get (), PropertyList);
1219
+ }
1220
1220
#endif
1221
1221
1222
1222
template <typename T = DataT, int Dims = Dimensions, typename AllocatorT,
@@ -1294,8 +1294,8 @@ class __SYCL_SPECIAL_CLASS accessor :
1294
1294
TagT, const property_list &PropertyList = {},
1295
1295
const detail::code_location CodeLoc = detail::code_location::current ())
1296
1296
: accessor (BufferRef, CommandGroupHandler, PropertyList, CodeLoc) {
1297
- adjustAccPropsInBuf (detail::getSyclObjImpl (BufferRef).get ());
1298
- }
1297
+ adjustAccPropsInBuf (detail::getSyclObjImpl (BufferRef).get ());
1298
+ }
1299
1299
1300
1300
template <typename T = DataT, int Dims = Dimensions, typename AllocatorT,
1301
1301
typename TagT, typename ... PropTypes,
@@ -1310,8 +1310,8 @@ class __SYCL_SPECIAL_CLASS accessor :
1310
1310
{},
1311
1311
const detail::code_location CodeLoc = detail::code_location::current ())
1312
1312
: accessor (BufferRef, CommandGroupHandler, PropertyList, CodeLoc) {
1313
- adjustAccPropsInBuf (detail::getSyclObjImpl (BufferRef).get (), PropertyList);
1314
- }
1313
+ adjustAccPropsInBuf (detail::getSyclObjImpl (BufferRef).get (), PropertyList);
1314
+ }
1315
1315
1316
1316
#endif
1317
1317
@@ -1354,8 +1354,8 @@ class __SYCL_SPECIAL_CLASS accessor :
1354
1354
TagT, const property_list &PropertyList = {},
1355
1355
const detail::code_location CodeLoc = detail::code_location::current ())
1356
1356
: accessor (BufferRef, AccessRange, {}, PropertyList, CodeLoc) {
1357
- adjustAccPropsInBuf (detail::getSyclObjImpl (BufferRef).get ());
1358
- }
1357
+ adjustAccPropsInBuf (detail::getSyclObjImpl (BufferRef).get ());
1358
+ }
1359
1359
1360
1360
template <typename T = DataT, int Dims = Dimensions, typename AllocatorT,
1361
1361
typename TagT, typename ... PropTypes,
@@ -1370,8 +1370,8 @@ class __SYCL_SPECIAL_CLASS accessor :
1370
1370
{},
1371
1371
const detail::code_location CodeLoc = detail::code_location::current ())
1372
1372
: accessor (BufferRef, AccessRange, {}, PropertyList, CodeLoc) {
1373
- adjustAccPropsInBuf (detail::getSyclObjImpl (BufferRef).get (), PropertyList);
1374
- }
1373
+ adjustAccPropsInBuf (detail::getSyclObjImpl (BufferRef).get (), PropertyList);
1374
+ }
1375
1375
#endif
1376
1376
1377
1377
template <typename T = DataT, int Dims = Dimensions, typename AllocatorT,
@@ -1416,8 +1416,8 @@ class __SYCL_SPECIAL_CLASS accessor :
1416
1416
const detail::code_location CodeLoc = detail::code_location::current ())
1417
1417
: accessor (BufferRef, CommandGroupHandler, AccessRange, {}, PropertyList,
1418
1418
CodeLoc) {
1419
- adjustAccPropsInBuf (detail::getSyclObjImpl (BufferRef).get ());
1420
- }
1419
+ adjustAccPropsInBuf (detail::getSyclObjImpl (BufferRef).get ());
1420
+ }
1421
1421
1422
1422
template <typename T = DataT, int Dims = Dimensions, typename AllocatorT,
1423
1423
typename TagT, typename ... PropTypes,
@@ -1433,8 +1433,8 @@ class __SYCL_SPECIAL_CLASS accessor :
1433
1433
const detail::code_location CodeLoc = detail::code_location::current ())
1434
1434
: accessor (BufferRef, CommandGroupHandler, AccessRange, {}, PropertyList,
1435
1435
CodeLoc) {
1436
- adjustAccPropsInBuf (detail::getSyclObjImpl (BufferRef).get (), PropertyList);
1437
- }
1436
+ adjustAccPropsInBuf (detail::getSyclObjImpl (BufferRef).get (), PropertyList);
1437
+ }
1438
1438
#endif
1439
1439
1440
1440
template <typename T = DataT, int Dims = Dimensions, typename AllocatorT,
@@ -1515,8 +1515,8 @@ class __SYCL_SPECIAL_CLASS accessor :
1515
1515
id<Dimensions> AccessOffset, TagT, const property_list &PropertyList = {},
1516
1516
const detail::code_location CodeLoc = detail::code_location::current ())
1517
1517
: accessor (BufferRef, AccessRange, AccessOffset, PropertyList, CodeLoc) {
1518
- adjustAccPropsInBuf (detail::getSyclObjImpl (BufferRef).get ());
1519
- }
1518
+ adjustAccPropsInBuf (detail::getSyclObjImpl (BufferRef).get ());
1519
+ }
1520
1520
1521
1521
template <typename T = DataT, int Dims = Dimensions, typename AllocatorT,
1522
1522
typename TagT, typename ... PropTypes,
@@ -1531,8 +1531,8 @@ class __SYCL_SPECIAL_CLASS accessor :
1531
1531
{},
1532
1532
const detail::code_location CodeLoc = detail::code_location::current ())
1533
1533
: accessor (BufferRef, AccessRange, AccessOffset, PropertyList, CodeLoc) {
1534
- adjustAccPropsInBuf (detail::getSyclObjImpl (BufferRef).get (), PropertyList);
1535
- }
1534
+ adjustAccPropsInBuf (detail::getSyclObjImpl (BufferRef).get (), PropertyList);
1535
+ }
1536
1536
#endif
1537
1537
1538
1538
template <typename T = DataT, int Dims = Dimensions, typename AllocatorT,
@@ -1614,8 +1614,8 @@ class __SYCL_SPECIAL_CLASS accessor :
1614
1614
const detail::code_location CodeLoc = detail::code_location::current ())
1615
1615
: accessor (BufferRef, CommandGroupHandler, AccessRange, AccessOffset,
1616
1616
PropertyList, CodeLoc) {
1617
- adjustAccPropsInBuf (detail::getSyclObjImpl (BufferRef).get ());
1618
- }
1617
+ adjustAccPropsInBuf (detail::getSyclObjImpl (BufferRef).get ());
1618
+ }
1619
1619
1620
1620
template <typename T = DataT, int Dims = Dimensions, typename AllocatorT,
1621
1621
typename TagT, typename ... PropTypes,
@@ -1631,8 +1631,8 @@ class __SYCL_SPECIAL_CLASS accessor :
1631
1631
const detail::code_location CodeLoc = detail::code_location::current ())
1632
1632
: accessor (BufferRef, CommandGroupHandler, AccessRange, AccessOffset,
1633
1633
PropertyList, CodeLoc) {
1634
- adjustAccPropsInBuf (detail::getSyclObjImpl (BufferRef).get (), PropertyList);
1635
- }
1634
+ adjustAccPropsInBuf (detail::getSyclObjImpl (BufferRef).get (), PropertyList);
1635
+ }
1636
1636
#endif
1637
1637
1638
1638
template <typename ... NewPropsT>
@@ -1796,20 +1796,24 @@ class __SYCL_SPECIAL_CLASS accessor :
1796
1796
#if __cplusplus >= 201703L
1797
1797
template <typename ... PropTypes>
1798
1798
void adjustAccPropsInBuf (detail::SYCLMemObjI *SYCLMemObject,
1799
- const sycl::ext::oneapi::accessor_property_list<PropTypes...> &PropertyList = {}) {
1799
+ const sycl::ext::oneapi::accessor_property_list<
1800
+ PropTypes...> &PropertyList = {}) {
1800
1801
if constexpr (PropertyListT::template has_property<
1801
- sycl::ext::intel::property::buffer_location>()) {
1802
+ sycl::ext::intel::property::buffer_location>()) {
1802
1803
auto location = (PropertyListT::template get_property<
1803
- sycl::ext::intel::property::buffer_location>()).get_location ();
1804
- property_list PropList{sycl::property::buffer::detail::buffer_location (location)};
1804
+ sycl::ext::intel::property::buffer_location>())
1805
+ .get_location ();
1806
+ property_list PropList{
1807
+ sycl::property::buffer::detail::buffer_location (location)};
1805
1808
SYCLMemObject->addOrReplaceAccessorProperties (PropList);
1806
1809
} else {
1807
1810
deleteAccPropsFromBuf (SYCLMemObject);
1808
1811
}
1809
1812
}
1810
1813
1811
1814
void deleteAccPropsFromBuf (detail::SYCLMemObjI *SYCLMemObject) {
1812
- SYCLMemObject->deleteAccessorProperty (sycl::detail::PropWithDataKind::AccPropBufferLocation);
1815
+ SYCLMemObject->deleteAccessorProperty (
1816
+ sycl::detail::PropWithDataKind::AccPropBufferLocation);
1813
1817
}
1814
1818
#endif
1815
1819
};
0 commit comments