Peano
Loading...
Searching...
No Matches
accelerator.h File Reference
#include "Device.h"
#include "tarch/multicore/multicore.h"
#include "tarch/compiler/CompilerSpecificSettings.h"
#include "tarch/accelerator/sycl/Device.h"
#include "accelerator.cpph"
Include dependency graph for accelerator.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  tarch
 Have to include this header, as I need access to the SYCL_EXTERNAL keyword.
namespace  tarch::internal

Macros

#define GPUOffloadingOff
#define GPUCallableMethod
#define GPUCallableInlineMethod

Enumerations

enum class  tarch::MemoryLocation { tarch::Heap , tarch::ManagedSharedAcceleratorDeviceMemory }

Functions

void tarch::gpuAbort ()
 Delegates to std::abort() if no GPU offloading is active.
std::string tarch::toString (MemoryLocation value)
void * tarch::internal::allocateRawData (std::size_t size, MemoryLocation location, int device)
template<class T = double>
T * tarch::allocateMemory (std::size_t count, MemoryLocation location, int device=accelerator::Device::HostDevice)
 Allocates memory on the specified memory location.
void tarch::freeMemory (void *data, MemoryLocation location, int device=accelerator::Device::HostDevice)
 Free memory.
std::size_t tarch::padSizeToAlignment (std::size_t size, std::size_t alignment)
double * tarch::memset (double *dest, double ch, size_t byteCount)
 Alternative GPU-ready version of memset.

Macro Definition Documentation

◆ GPUCallableInlineMethod

#define GPUCallableInlineMethod

Definition at line 37 of file accelerator.h.

Referenced by exahype2::enumerator::AoSLexicographicEnumerator::AoSLexicographicEnumerator(), exahype2::enumerator::AoSoALexicographicEnumerator::AoSoALexicographicEnumerator(), exahype2::fv::riemann::loopbodies::computeEigenvalues(), exahype2::fv::riemann::loopbodies::computeEigenvalues(), exahype2::fv::riemann::loopbodies::computeFlux(), exahype2::fv::riemann::loopbodies::computeFlux(), exahype2::fv::riemann::loopbodies::computeFlux(), exahype2::fv::riemann::loopbodies::computeNonconservativeFlux(), exahype2::fv::riemann::loopbodies::computeNonconservativeFlux(), exahype2::fv::riemann::loopbodies::computeRiemannSolution(), exahype2::fv::riemann::loopbodies::copySolutionAndAddSourceTerm(), exahype2::fv::riemann::loopbodies::copySolutionAndAddSourceTerm(), exahype2::enumerator::FaceAoSLexicographicEnumerator::FaceAoSLexicographicEnumerator(), exahype2::enumerator::AoSLexicographicEnumerator::numberOfDofsPerCell(), exahype2::enumerator::AoSoALexicographicEnumerator::numberOfDofsPerCell(), exahype2::enumerator::AoSLexicographicEnumerator::operator()(), exahype2::enumerator::AoSoALexicographicEnumerator::operator()(), exahype2::enumerator::FaceAoSLexicographicEnumerator::operator()(), exahype2::enumerator::SingleDoFEnumerator::operator()(), exahype2::enumerator::SoALexicographicEnumerator::operator()(), exahype2::enumerator::SingleDoFEnumerator::SingleDoFEnumerator(), exahype2::enumerator::AoSLexicographicEnumerator::size(), exahype2::enumerator::AoSoALexicographicEnumerator::size(), exahype2::enumerator::FaceAoSLexicographicEnumerator::size(), exahype2::enumerator::SingleDoFEnumerator::size(), exahype2::enumerator::SoALexicographicEnumerator::size(), exahype2::enumerator::SoALexicographicEnumerator::SoALexicographicEnumerator(), and exahype2::fv::riemann::loopbodies::updateSolutionWithNonconservativeFlux().

◆ GPUCallableMethod

◆ GPUOffloadingOff

#define GPUOffloadingOff

Definition at line 11 of file accelerator.h.