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.

Declared at: include/backend/sycl_backend.h:148

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 region_layout & source_layout, const region_layout & dest_layout, const region<3> & copy_region, size_t elem_size) → async_event
  • sycl_cuda_backend(const std::vector<sycl::device> & devices, const sycl_backend::configuration & config)

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 region_layout& source_layout,
    const region_layout& dest_layout,
    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.

Declared at: include/backend/sycl_backend.h:152

Parameters

device_id device
size_t device_lane
const void* source_base
void* dest_base
const region_layout& source_layout
const region_layout& dest_layout
const region<3>& copy_region
size_t elem_size

sycl_cuda_backend(
    const std::vector<sycl::device>& devices,
    const sycl_backend::configuration& config)

Declared at: include/backend/sycl_backend.h:150

Parameters

const std::vector<sycl::device>& devices
const sycl_backend::configuration& config