@@ -336,11 +336,11 @@ class accessor :
336
336
using reference = DataT &;
337
337
using const_reference = const DataT &;
338
338
339
- template <int Dims = Dimensions>
339
+ template <typename AllocatorT, int Dims = Dimensions>
340
340
accessor (
341
341
enable_if_t <Dims == 0 && ((!IsPlaceH && IsHostBuf) ||
342
342
(IsPlaceH && (IsGlobalBuf || IsConstantBuf))),
343
- buffer<DataT, 1 >> &BufferRef)
343
+ buffer<DataT, 1 , AllocatorT >> &BufferRef)
344
344
#ifdef __SYCL_DEVICE_ONLY__
345
345
: impl(id<AdjustedDim>(), BufferRef.get_range(), BufferRef.MemRange) {
346
346
#else
@@ -357,9 +357,9 @@ class accessor :
357
357
#endif
358
358
}
359
359
360
- template <int Dims = Dimensions>
360
+ template <typename AllocatorT, int Dims = Dimensions>
361
361
accessor (
362
- buffer<DataT, 1 > &BufferRef,
362
+ buffer<DataT, 1 , AllocatorT > &BufferRef,
363
363
enable_if_t <Dims == 0 && (!IsPlaceH && (IsGlobalBuf || IsConstantBuf)),
364
364
handler> &CommandGroupHandler)
365
365
#ifdef __SYCL_DEVICE_ONLY__
@@ -376,11 +376,11 @@ class accessor :
376
376
}
377
377
#endif
378
378
379
- template <int Dims = Dimensions,
379
+ template <typename AllocatorT, int Dims = Dimensions,
380
380
typename = enable_if_t <
381
381
(Dims > 0 ) && ((!IsPlaceH && IsHostBuf) ||
382
382
(IsPlaceH && (IsGlobalBuf || IsConstantBuf)))>>
383
- accessor (buffer<DataT, Dimensions> &BufferRef)
383
+ accessor (buffer<DataT, Dimensions, AllocatorT > &BufferRef)
384
384
#ifdef __SYCL_DEVICE_ONLY__
385
385
: impl (id<Dimensions>(), BufferRef.get_range (), BufferRef.MemRange ) {
386
386
}
@@ -398,10 +398,11 @@ class accessor :
398
398
}
399
399
#endif
400
400
401
- template <int Dims = Dimensions,
401
+ template <typename AllocatorT, int Dims = Dimensions,
402
402
typename = enable_if_t <
403
403
(Dims > 0 ) && (!IsPlaceH && (IsGlobalBuf || IsConstantBuf))>>
404
- accessor (buffer<DataT, Dimensions> &BufferRef, handler &CommandGroupHandler)
404
+ accessor (buffer<DataT, Dimensions, AllocatorT> &BufferRef,
405
+ handler &CommandGroupHandler)
405
406
#ifdef __SYCL_DEVICE_ONLY__
406
407
: impl (id<AdjustedDim>(), BufferRef.get_range (), BufferRef.MemRange ) {
407
408
}
@@ -416,12 +417,12 @@ class accessor :
416
417
}
417
418
#endif
418
419
419
- template <int Dims = Dimensions,
420
+ template <typename AllocatorT, int Dims = Dimensions,
420
421
typename = enable_if_t <
421
422
(Dims > 0 ) && ((!IsPlaceH && IsHostBuf) ||
422
423
(IsPlaceH && (IsGlobalBuf || IsConstantBuf)))>>
423
- accessor (buffer<DataT, Dimensions> &BufferRef, range<Dimensions> AccessRange ,
424
- id<Dimensions> AccessOffset = {})
424
+ accessor (buffer<DataT, Dimensions, AllocatorT> &BufferRef ,
425
+ range<Dimensions> AccessRange, id<Dimensions> AccessOffset = {})
425
426
#ifdef __SYCL_DEVICE_ONLY__
426
427
: impl (AccessOffset, AccessRange, BufferRef.MemRange ) {
427
428
}
@@ -438,11 +439,12 @@ class accessor :
438
439
}
439
440
#endif
440
441
441
- template <int Dims = Dimensions,
442
+ template <typename AllocatorT, int Dims = Dimensions,
442
443
typename = enable_if_t <
443
444
(Dims > 0 ) && (!IsPlaceH && (IsGlobalBuf || IsConstantBuf))>>
444
- accessor (buffer<DataT, Dimensions> &BufferRef, handler &CommandGroupHandler,
445
- range<Dimensions> AccessRange, id<Dimensions> AccessOffset = {})
445
+ accessor (buffer<DataT, Dimensions, AllocatorT> &BufferRef,
446
+ handler &CommandGroupHandler, range<Dimensions> AccessRange,
447
+ id<Dimensions> AccessOffset = {})
446
448
#ifdef __SYCL_DEVICE_ONLY__
447
449
: impl (AccessOffset, AccessRange, BufferRef.MemRange ) {
448
450
}
0 commit comments