tfel
Loading...
Searching...
No Matches
SYCLDeviceCopies.hxx File Reference

This file declares the copies in device memory of the arrays which are not accessible by the device associated with a SYCL queue, used by the generic-parallel interface for material properties. More...

#include <cstddef>
#include <cstring>
#include <optional>
#include <type_traits>
#include <vector>
#include <sycl/sycl.hpp>
#include "TFEL/Raise.hxx"

Classes

struct  mfront::generic_parallel::sycl::StridedArray< ValueType >
 strided array: the j-th component of the i-th point is stored at values[i * point_stride + j * component_stride] More...
struct  mfront::generic_parallel::sycl::DeviceCopies
 copies in device memory of the fields which are not accessible by the device associated with a queue. The outputs must be copied back by calling the copyOutputs method. More...

Namespaces

namespace  mfront
 This namespace contains material used to build the MFront code generator.
namespace  mfront::generic_parallel

Typedefs

using mfront::generic_parallel::sycl::size_type = std::size_t
 a simple alias

Enumerations

enum struct  mfront::generic_parallel::sycl::DataTransferPolicy { AUTOMATIC , NONE }
 policy for the transfer of the data of a batch or of a set of points More...

Detailed Description

This file declares the copies in device memory of the arrays which are not accessible by the device associated with a SYCL queue, used by the generic-parallel interface for material properties.

Date
08/10/2026

Enumeration Type Documentation

◆ DataTransferPolicy

policy for the transfer of the data of a batch or of a set of points

Enumerator
AUTOMATIC 

the arrays which are not accessible by the device associated with the queue (host memory not allocated by SYCL) are copied in device memory, and the outputs are copied back

NONE 

all the arrays are assumed to be accessible by the device