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

This file declares the memory spaces in which the fields given to the functions generated by the generic-parallel interfaces must be located, and the memory spaces of the programming models whose target is selected by the compiler. More...

Namespaces

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

Functions

constexpr const char * mfront::generic_parallel::getNVHPCOffloadMemorySpace () noexcept
constexpr const char * mfront::generic_parallel::getParallelSTLMemorySpace () noexcept

Variables

constexpr const char * mfront::generic_parallel::host_memory_space = "host"
 the computations are performed on the host: the fields must be accessible by the host (ordinary or shared memory)
constexpr const char * mfront::generic_parallel::device_memory_space = "device"
 the computations are performed on a device, which may not access the ordinary memory of the host: the fields must be accessible by the device (memory of the device or shared memory). The library can't assume that the device accesses the ordinary memory of the host, even if the device is a CPU (sycl backend without data transfers).
constexpr const char * mfront::generic_parallel::any_memory_space = "any"
 the fields may be located anywhere (for instance, the fields which are not accessible by the device are copied)

Detailed Description

This file declares the memory spaces in which the fields given to the functions generated by the generic-parallel interfaces must be located, and the memory spaces of the programming models whose target is selected by the compiler.

Date
08/10/2026