Peano
Loading...
Searching...
No Matches
accelerator.h File Reference
Include dependency graph for accelerator.h:

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)
 
voidtarch::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)
 
doubletarch::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.

◆ GPUCallableMethod

#define GPUCallableMethod

Definition at line 27 of file accelerator.h.

◆ GPUOffloadingOff

#define GPUOffloadingOff

Definition at line 11 of file accelerator.h.