Skip to content

Commit 0d2c890

Browse files
author
Alexander Batashev
committed
Fix CTS failure
Signed-off-by: Alexander Batashev <[email protected]>
1 parent 06837a8 commit 0d2c890

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

sycl/include/CL/sycl/buffer.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,9 @@ class buffer {
229229

230230
size_t get_size() const { return get_count() * sizeof(T); }
231231

232-
AllocatorT get_allocator() const { return impl->get_allocator<AllocatorT>(); }
232+
AllocatorT get_allocator() const {
233+
return impl->template get_allocator<AllocatorT>();
234+
}
233235

234236
template <access::mode Mode,
235237
access::target Target = access::target::global_buffer>

sycl/include/CL/sycl/image.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,9 @@ class image {
257257
size_t get_count() const { return impl->get_count(); }
258258

259259
// Returns the allocator provided to the image
260-
AllocatorT get_allocator() const { return impl->get_allocator(); }
260+
AllocatorT get_allocator() const {
261+
return impl->template get_allocator<AllocatorT>();
262+
}
261263

262264
template <typename DataT, access::mode AccessMode>
263265
accessor<detail::EnableIfImgAccDataT<DataT>, Dimensions, AccessMode,

0 commit comments

Comments
 (0)