Skip to main content

class sycl_generic_backend

Declaration

class sycl_generic_backend : public sycl_backend { /* full declaration omitted */ };

Description

Generic implementation of sycl_backend providing a fallback implementation for device copies that might be inefficient in the 2D / 3D case.

Inherits from: sycl_backend

Member Variables

Member Function Overview

  • enqueue_device_copy(device_id device, size_t device_lane, const void * source_base, void * dest_base, const box<3> & source_box, const box<3> & dest_box, const region<3> & copy_region, size_t elem_size) → async_event
  • sycl_generic_backend(const std::vector<sycl::device> & devices, bool enable_profiling)

Inherited from sycl_backend:

Inherited from backend:

Member Functions

async_event enqueue_device_copy(
    device_id device,
    size_t device_lane,
    const void* source_base,
    void* dest_base,
    const box<3>& source_box,
    const box<3>& dest_box,
    const region<3>& copy_region,
    size_t elem_size)

Description

Enqueues an n-dimensional copy between two device-accessible allocations (at least one device-native). The operation will complete in-order with respect to any other asynchronous device operation on device and device_lane.

Parameters

device_id device
size_t device_lane
const void* source_base
void* dest_base
const box<3>& source_box
const box<3>& dest_box
const region<3>& copy_region
size_t elem_size

sycl_generic_backend(
    const std::vector<sycl::device>& devices,
    bool enable_profiling)

Parameters

const std::vector<sycl::device>& devices
bool enable_profiling