syclreference.com
  1. SYCL
  2. | API Reference
  3. | Command Groups
  4. | handler
  5. | copy

copy

MISSING


template <typename TAcc, typename THostPtr, int dims, cl::sycl::access::mode accessMode, cl::sycl::access::target accessTarget, access::placeholder isPlaceholder, typename overloadDependantT, typename >
void copy(accessor<TAcc, dims, accessMode, accessTarget, isPlaceholder> acc, THostPtr * hostPtr)
(1)
template <typename TAcc, typename THostPtr, int dims, cl::sycl::access::mode accessMode, cl::sycl::access::target accessTarget, access::placeholder isPlaceholder, typename overloadDependantT, typename >
void copy(accessor<TAcc, dims, accessMode, accessTarget, isPlaceholder> acc, shared_ptr_class<THostPtr> hostPtr)
(2)
template <typename TAcc, typename THostPtr, int dims, cl::sycl::access::mode accessMode, cl::sycl::access::target accessTarget, access::placeholder isPlaceholder, typename overloadDependantT, typename >
void copy(const THostPtr * hostPtr, accessor<TAcc, dims, accessMode, accessTarget, isPlaceholder> acc)
(3)
template <typename TAcc, typename THostPtr, int dims, cl::sycl::access::mode accessMode, cl::sycl::access::target accessTarget, access::placeholder isPlaceholder, typename overloadDependantT, typename >
void copy(shared_ptr_class<THostPtr> hostPtr, accessor<TAcc, dims, accessMode, accessTarget, isPlaceholder> acc)
(4)
template <typename TOrig, typename TDest, int dims, cl::sycl::access::mode accessModeOrig, cl::sycl::access::mode accessModeDest, cl::sycl::access::target accessTargetOrig, cl::sycl::access::target accessTargetDest, access::placeholder isPlaceholderOrig, access::placeholder isPlaceholderDest, typename overloadDependantT, typename >
void copy(accessor<TOrig, dims, accessModeOrig, accessTargetOrig, isPlaceholderOrig> originAcc, accessor<TDest, dims, accessModeDest, accessTargetDest, isPlaceholderDest> destinationAcc)
(5)
  1. Copies the data from the device accessor to the host pointer. hostPtr must have enough space allocated to match the size of the accessor data.
    Parameters:
    • accessor<TAcc, dims, accessMode, accessTarget, isPlaceholder> acc : Accessor that is used to access the buffer or image
    • THostPtr * hostPtr : Host pointer that will be updated
  2. Copies the data from the device accessor to the host pointer. hostPtr must have enough space allocated to match the size of the accessor data.
    Parameters:
    • accessor<TAcc, dims, accessMode, accessTarget, isPlaceholder> acc : Accessor that is used to access the buffer or image
    • shared_ptr_class<THostPtr> hostPtr : Host pointer that will be updated
  3. Copies the data from the host pointer to the device accessor. hostPtr must have enough space allocated to match the size of the accessor data.
    Parameters:
    • const THostPtr * hostPtr : Host pointer that points to the new data
    • accessor<TAcc, dims, accessMode, accessTarget, isPlaceholder> acc : Accessor that is used to access the buffer or image
  4. Copies the data from the host pointer to the device accessor. hostPtr must have enough space allocated to match the size of the accessor data.
    Parameters:
    • shared_ptr_class<THostPtr> hostPtr : Host pointer that points to the new data
    • accessor<TAcc, dims, accessMode, accessTarget, isPlaceholder> acc : Accessor that is used to access the buffer or image
  5. Copies data associated with the origin accessor to the data associated with the destination accessor.
    Parameters:
    • accessor<TOrig, dims, accessModeOrig, accessTargetOrig, isPlaceholderOrig> originAcc : Accessor with the data that will be copied from
    • accessor<TDest, dims, accessModeDest, accessTargetDest, isPlaceholderDest> destinationAcc : Accessor with the data that will be copied to

syclreference.com — SYCL Reference Pages

Last updated: 2019-01-24 00:24:52 +0000