Peano 4
Loading...
Searching...
No Matches
accelerator.h File Reference
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 (int size, MemoryLocation location)
 
template<class T = double>
T * tarch::allocateMemory (int size, MemoryLocation location, int device=-1)
 
void tarch::freeMemory (void *data, MemoryLocation location)
 
int tarch::padSizeToAlignment (int size, int aligment)
 
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 35 of file accelerator.h.

◆ GPUCallableMethod

#define GPUCallableMethod

Definition at line 25 of file accelerator.h.

◆ GPUOffloadingOff

#define GPUOffloadingOff

Definition at line 9 of file accelerator.h.