buffer<T, dimensions, AllocatorT>
MISSING
(1) | |
(2) | |
(3) | |
(4) | |
(5) | |
(6) | |
(7) | |
(8) | |
(9) | |
(10) | |
(11) | |
(12) | |
(13) | |
(14) | |
(15) |
-
Constructs a buffer with a host pointer. In this case there is a host pointer, potentially initialized, but the user has not given the runtime any ownership, therefore the deleter has to be null. A Copy in is performed if the pointer is not null. If it is null, the data is initialized (new) inside the runtime. A copy out to hostPointer is performed by default.
Parameters:-
T *
hostPointer
: Pointer to host data -
const range<dimensions> &
r
: Range of the buffer -
AllocatorT
allocator
: The allocator used to create internal storage in case the -
const cl::sycl::property_list &
propList
: List of buffer properties
-
-
Constructs a buffer with a host pointer. In this case there is a host pointer, potentially initialized, but the user has not given the runtime any ownership, therefore the deleter has to be null. A Copy in is performed if the pointer is not null. If it is null, the data is initialized (new) inside the runtime. A copy out to hostPointer is performed by default.
Parameters:-
T *
hostPointer
: Pointer to host data -
const range<dimensions> &
r
: Range of the buffer -
const cl::sycl::property_list &
propList
: List of buffer properties
-
-
Construct a buffer as a subset from an existing buffer.
Parameters:-
buffer<T, dimensions> &
b
: Existing buffer that will act as the parent -
const id<dimensions> &
base_index
: Offset of the original data to where the sub-buffer data -
const range<dimensions> &
sub_range
: Range of the original data that will be used in the
-
-
(deprecated (This constructor is deprecated in SYCL 1.2.1, Please use the OpenCL interop constructor that accepts a SYCL context instead.))
Construct a buffer from an OpenCL object.
Parameters:-
cl_mem
mem_object
: the user-provided OpenCL object that will be used by the -
cl::sycl::queue &
fromQueue
: the queue holding the context associated with the mem_object -
cl::sycl::event
available_event
: if provided signals that the cl_mem object has been
-
-
Construct a buffer from an OpenCL object.
Parameters:-
cl_mem
mem_object
: the user-provided OpenCL object that will be used by the -
const cl::sycl::context &
syclContext
: the context associated with the mem_object object -
cl::sycl::event
available_event
: if provided signals that the cl_mem object has been
-
-
Constructs a buffer with host pointer. The user has given a const pointer, but the buffer is not const, so the runtime copies the data into a temporary space created using the given allocator. If the given allocator is a null allocator, this fails.
Parameters:-
const T *
hostPointer
: Pointer to host data -
const range<dimensions> &
r
: Range of the buffer -
AllocatorT
allocator
: The allocator used to create internal storage -
const cl::sycl::property_list &
propList
: List of buffer properties
-
-
Constructs a buffer with host pointer. The user has given a const pointer, but the buffer is not const, so the runtime copies the data into a temporary space created using the given allocator. If the given allocator is a null allocator, this fails.
Parameters:-
const T *
hostPointer
: Pointer to host data -
const range<dimensions> &
r
: Range of the buffer -
const cl::sycl::property_list &
propList
: List of buffer properties
-
-
Constructs a buffer without a host pointer. The runtime will only use internally allocated memory and no copy in or out is defined. The given allocator is used to create internal storage in case the runtime requires it.
Parameters:-
const range<dimensions> &
r
: Range of the buffer -
AllocatorT
allocator
: The allocator used to create internal storage in case the -
const cl::sycl::property_list &
propList
: List of buffer properties
-
-
Constructs a buffer without a host pointer. The runtime will only use internally allocated memory and no copy in or out is defined. The given allocator is used to create internal storage in case the runtime requires it.
Parameters:-
const range<dimensions> &
r
: Range of the buffer -
const cl::sycl::property_list &
propList
: List of buffer properties
-
-
Constructs a buffer with a host pointer. The user has given a shared pointer, therefore the data is explicitly shared between the user and the runtime. If the hostPointer is null, no data is copied in, and data is initialized inside the runtime. Data is copied out if the reference count of the runtime is less than the reference count of the shared pointer.
Parameters:-
const shared_ptr_class<T> &
hostPointer
: Shared pointer to host data -
const range<dimensions> &
r
: Range of the buffer -
AllocatorT
allocator
: The allocator used to create internal storage -
const cl::sycl::property_list &
propList
: List of buffer properties
-
-
Constructs a buffer with a host pointer. The user has given a shared pointer, therefore the data is explicitly shared between the user and the runtime. If the hostPointer is null, no data is copied in, and data is initialized inside the runtime. Data is copied out if the reference count of the runtime is less than the reference count of the shared pointer.
Parameters:-
const shared_ptr_class<T> &
hostPointer
: Shared pointer to host data -
const range<dimensions> &
r
: Range of the buffer -
const cl::sycl::property_list &
propList
: List of buffer properties
-
-
Creates a new public buffer object given an internal memory object. Implementation only
Parameters:-
cl::sycl::dmem_shptr
impl
-
-
Constructs a buffer from an std::vector, this is non-standard. A shared pointer is created from the raw data of the pointer, and a null-deleter is used to avoid the runtime clearing up the user-pointer. The range of the buffer is extracted from the size of the vector. The allocator from the vector is used as an allocator for the buffer.
Parameters:-
vector_class<T> &
v
: Vector to construct the buffer from -
const cl::sycl::property_list &
propList
: List of buffer properties
-
-
Constructs a buffer initialized by the given iterator range. This range is read-only, is not written.
Parameters:-
Iterator
begin
: Iterator starting the range -
Iterator
end
: Iterator ending the range -
AllocatorT
allocator
: The allocator used to create internal storage -
const cl::sycl::property_list &
propList
: List of buffer properties
-
-
Constructs a buffer initialized by the given iterator range. This range is read-only, is not written.
Parameters:-
Iterator
begin
: Iterator starting the range -
Iterator
end
: Iterator ending the range -
const cl::sycl::property_list &
propList
: List of buffer properties
-