Nektar++
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Typedefs | Functions | Variables
Backends.hpp File Reference
#include <LibUtilities/BasicUtils/NekInline.hpp>
#include <LibUtilities/SimdLib/tinysimd.hpp>
#include <algorithm>
#include <type_traits>
#include <float.h>
#include <iostream>
#include <limits.h>
#include <string>
#include <unordered_map>
#include <utility>

Go to the source code of this file.

Classes

struct  Nektar::NektarSpaces::HostSpace
 
struct  Nektar::NektarSpaces::Serial
 
struct  Nektar::NektarSpaces::AVX
 
struct  Nektar::NektarSpaces::Device
 
struct  Nektar::NektarSpaces::vector_width< ExecSpace, TData >
 
struct  Nektar::NektarSpaces::vector_width< Serial, TData >
 
struct  Nektar::NektarSpaces::vector_width< AVX, TData >
 
struct  Nektar::NektarSpaces::vector_width< Device, TData >
 
struct  Nektar::NektarSpaces::max_vector_width< TData >
 
struct  Nektar::const_if< B, TData >
 
struct  Nektar::const_if< true, TData >
 
struct  Nektar::data_type_if< B, TData >
 
struct  Nektar::data_type_if< true, TData >
 
struct  Nektar::simd_type_if< B, TData >
 
struct  Nektar::simd_type_if< true, TData >
 

Namespaces

namespace  Nektar
 
namespace  Nektar::NektarSpaces
 

Macros

#define SYCL_SUBGROUP_SIZE(x)
 
#define NEK_RESTRICT   __restrict__
 
#define NEK_HOSTDEVICE_INLINE   NEK_FORCE_INLINE
 
#define NEK_DEVICE_INLINE   NEK_FORCE_INLINE
 
#define NEK_DEVICE_KERNEL   NEK_FORCE_INLINE
 

Typedefs

using Nektar::NektarSpaces::DeviceSpace = HostSpace
 

Functions

template<typename TData >
static unsigned int Nektar::NektarSpaces::GetVectorWidth (const std::string &execName)
 
template<typename TData >
std::string Nektar::DataTypeToString (void)
 
template<typename TMask , typename TData >
NEK_HOSTDEVICE_INLINE TData Nektar::Select (const TMask &m, const TData &a, const TData &b)
 a where m holds, and b elsewhere.
 
static void Nektar::nekSetDevice (unsigned int device_rank)
 
static unsigned int Nektar::nekGetDevice ()
 
static unsigned int Nektar::nekGetNumDevice ()
 
static void Nektar::nekDeviceSynchronize (void)
 
static void Nektar::nekStreamSynchronize (const unsigned int streamID)
 
template<typename ExecSpace , std::enable_if_t<!std::is_same_v< ExecSpace, NektarSpaces::Device >, bool > Enable = true>
static void Nektar::SetStreamDependencies (unsigned int streamID, unsigned int eventID)
 
template<typename ExecSpace , std::enable_if_t<!std::is_same_v< ExecSpace, NektarSpaces::Device >, bool > Enable = true>
static void Nektar::SetStreamDependencies (unsigned int streamID, std::vector< unsigned int > &eventIDs)
 
template<typename ExecSpace >
static void Nektar::RecordStreamEvent (const unsigned int streamID)
 Record the current point of stream streamID for SetStreamDependencies. SYCL queues record their last submission themselves.
 
template<typename ExecSpace >
static bool Nektar::StreamExists (const unsigned int streamID)
 Whether stream streamID has been created, and so may hold work.
 
template<typename ExecSpace >
static void Nektar::JoinStreams (const unsigned int streamID, const std::vector< unsigned int > &streamIDs)
 Order the work queued next on stream streamID after the work already queued on each of streamIDs.
 
template<typename ExecSpace >
static void Nektar::JoinStreams (const unsigned int streamID, const unsigned int producerID)
 Order the work queued next on stream streamID after the work already queued on stream producerID; JoinStreams() with one stream.
 
template<typename ExecSpace >
static void Nektar::ReleaseStreams (const unsigned int streamID, const std::vector< unsigned int > &streamIDs)
 Order the work queued next on each of streamIDs after the work already queued on stream streamID.
 

Variables

constexpr unsigned int Nektar::internalReductionMaxValues = 12
 
static constexpr size_t Nektar::NektarSpaces::host_memory_alignment
 

Macro Definition Documentation

◆ NEK_DEVICE_INLINE

#define NEK_DEVICE_INLINE   NEK_FORCE_INLINE

Definition at line 283 of file Backends.hpp.

◆ NEK_DEVICE_KERNEL

#define NEK_DEVICE_KERNEL   NEK_FORCE_INLINE

Definition at line 297 of file Backends.hpp.

◆ NEK_HOSTDEVICE_INLINE

#define NEK_HOSTDEVICE_INLINE   NEK_FORCE_INLINE

Definition at line 268 of file Backends.hpp.

◆ NEK_RESTRICT

#define NEK_RESTRICT   __restrict__

Definition at line 254 of file Backends.hpp.

◆ SYCL_SUBGROUP_SIZE

#define SYCL_SUBGROUP_SIZE (   x)

Definition at line 170 of file Backends.hpp.