Nektar++
Loading...
Searching...
No Matches
Classes | Typedefs | Functions | Variables
Nektar::NektarSpaces Namespace Reference

Classes

struct  AVX
 
struct  Device
 
struct  GlobalScope
 
struct  HostSpace
 
struct  LocalScope
 
struct  max_vector_width
 
struct  Serial
 
struct  vector_width
 
struct  vector_width< AVX, TData >
 
struct  vector_width< Device, TData >
 
struct  vector_width< Serial, TData >
 

Typedefs

using DeviceSpace = HostSpace
 

Functions

template<typename TData >
static unsigned int GetVectorWidth (const std::string &execName)
 

Variables

static constexpr size_t host_memory_alignment
 

Typedef Documentation

◆ DeviceSpace

Definition at line 95 of file Backends.hpp.

Function Documentation

◆ GetVectorWidth()

template<typename TData >
static unsigned int Nektar::NektarSpaces::GetVectorWidth ( const std::string &  execName)
static

Definition at line 218 of file Backends.hpp.

219{
220 if (execName == "Serial")
221 {
223 }
224 else if (execName == "AVX")
225 {
227 }
228 else if (execName == "Device")
229 {
230 return NektarSpaces::vector_width<NektarSpaces::Device, TData>::value;
231 }
232 else
233 {
234 return 0;
235 }
236}

Variable Documentation

◆ host_memory_alignment

constexpr size_t Nektar::NektarSpaces::host_memory_alignment
staticconstexpr