Skip to main content

class sycl_cuda_backend

Declaration

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

Description

CUDA specialized implementation of sycl_backend that uses native CUDA operations for 2D / 3D copies.

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_cuda_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_cuda_backend(
    const std::vector<sycl::device>& devices,
    bool enable_profiling)

Parameters

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