Skip to content

Commit 852e4be

Browse files
committed
(Intermediate) Maybe fix for CWG1835.
llvm/llvm-project#98547
1 parent 4f186c9 commit 852e4be

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

include/hipSYCL/sycl/libkernel/accessor.hpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ class HIPSYCL_EMPTY_BASES accessor
10671067
{
10681068
if constexpr (has_accessor_properties) {
10691069
return this->detail::accessor::conditional_accessor_properties_storage<
1070-
has_accessor_properties>::get().is_placeholder();
1070+
has_accessor_properties>::template get().is_placeholder();
10711071
} else if constexpr (AccessorVariant ==
10721072
accessor_variant::ranged_placeholder ||
10731073
AccessorVariant ==
@@ -1128,10 +1128,10 @@ class HIPSYCL_EMPTY_BASES accessor
11281128
ACPP_UNIVERSAL_TARGET range<dimensions> get_range() const noexcept {
11291129
if constexpr(has_access_range) {
11301130
return this->detail::accessor::conditional_access_range_storage<
1131-
has_access_range, dimensions>::ptr()->range;
1131+
has_access_range, dimensions>::template ptr()->range;
11321132
} else if constexpr(has_buffer_range) {
11331133
return this->detail::accessor::conditional_buffer_range_storage<
1134-
has_buffer_range, dimensions>::get();
1134+
has_buffer_range, dimensions>::template get();
11351135
} else {
11361136
return sycl::range<dimensions>{};
11371137
}
@@ -1147,7 +1147,7 @@ class HIPSYCL_EMPTY_BASES accessor
11471147
return sycl::id<dimensions>{};
11481148
} else {
11491149
return this->detail::accessor::conditional_access_range_storage<
1150-
has_access_range, dimensions>::ptr()->offset;
1150+
has_access_range, dimensions>::template ptr()->offset;
11511151
}
11521152
}
11531153

@@ -1330,7 +1330,7 @@ class HIPSYCL_EMPTY_BASES accessor
13301330
is_no_init_access = this->is_no_init(prop_list);
13311331

13321332
this->detail::accessor::conditional_accessor_properties_storage<
1333-
has_accessor_properties>::
1333+
has_accessor_properties>::template
13341334
attempt_set(detail::accessor::accessor_properties{
13351335
is_placeholder_access, is_no_init_access});
13361336
}
@@ -1356,7 +1356,7 @@ class HIPSYCL_EMPTY_BASES accessor
13561356

13571357
if constexpr (has_accessor_properties) {
13581358
this->detail::accessor::conditional_accessor_properties_storage<
1359-
has_accessor_properties>::
1359+
has_accessor_properties>::template
13601360
attempt_set(detail::accessor::accessor_properties{
13611361
is_placeholder_access, is_no_init_access});
13621362
}
@@ -1390,7 +1390,7 @@ class HIPSYCL_EMPTY_BASES accessor
13901390
range<adj_dimensions> get_buffer_shape() const noexcept {
13911391
if constexpr(has_buffer_range) {
13921392
return this->detail::accessor::conditional_buffer_range_storage<
1393-
has_buffer_range, adj_dimensions>::get();
1393+
has_buffer_range, adj_dimensions>::template get();
13941394
} else {
13951395
return range<adj_dimensions>{};
13961396
}
@@ -1401,7 +1401,7 @@ class HIPSYCL_EMPTY_BASES accessor
14011401
if constexpr(has_buffer_pointer) {
14021402
return this
14031403
->detail::accessor::conditional_buffer_pointer_storage<
1404-
has_buffer_pointer>::get()
1404+
has_buffer_pointer>::template get()
14051405
.get_shared_ptr();
14061406
}
14071407
return nullptr;
@@ -1414,18 +1414,18 @@ class HIPSYCL_EMPTY_BASES accessor
14141414
__acpp_if_target_host(
14151415
auto buffer_region = detail::extract_buffer_data_region(buff);
14161416
this->detail::accessor::
1417-
conditional_buffer_pointer_storage<has_buffer_pointer>::attempt_set(
1417+
conditional_buffer_pointer_storage<has_buffer_pointer>::template attempt_set(
14181418
detail::mobile_shared_ptr{buffer_region});
14191419
);
14201420

14211421
this->detail::accessor::conditional_access_range_storage<
14221422
has_access_range,
1423-
adj_dimensions>::attempt_set(detail::accessor::access_range<adj_dimensions>{
1423+
adj_dimensions>::template attempt_set(detail::accessor::access_range<adj_dimensions>{
14241424
accessOffset, accessRange});
14251425

14261426
this->detail::accessor::conditional_buffer_range_storage<
14271427
has_buffer_range,
1428-
adj_dimensions>::attempt_set(detail::extract_buffer_range(buff));
1428+
adj_dimensions>::template attempt_set(detail::extract_buffer_range(buff));
14291429
}
14301430

14311431
void init_host_buffer(rt::runtime* rt, bool is_no_init) {
@@ -1434,7 +1434,7 @@ class HIPSYCL_EMPTY_BASES accessor
14341434

14351435
auto data_mobile_ptr =
14361436
this->detail::accessor::conditional_buffer_pointer_storage<
1437-
has_buffer_pointer>::get();
1437+
has_buffer_pointer>::template get();
14381438
auto data = data_mobile_ptr.get_shared_ptr();
14391439
assert(data);
14401440

@@ -1534,7 +1534,7 @@ class HIPSYCL_EMPTY_BASES accessor
15341534
bool is_no_init() {
15351535
if(has_accessor_properties) {
15361536
bool flag = this->detail::accessor::conditional_accessor_properties_storage<
1537-
has_accessor_properties>::ptr()
1537+
has_accessor_properties>::template ptr()
15381538
->is_no_init();
15391539
if(flag)
15401540
return true;

0 commit comments

Comments
 (0)