LvArray
Classes | Namespaces | Functions | Variables
ChaiBuffer.hpp File Reference

Contains the implementation of LvArray::ChaiBuffer. More...

#include "LvArrayConfig.hpp"
#include "Macros.hpp"
#include "typeManipulation.hpp"
#include "arrayManipulation.hpp"
#include "system.hpp"
#include "bufferManipulation.hpp"
#include <chai/ArrayManager.hpp>
#include <mutex>
Include dependency graph for ChaiBuffer.hpp:

Go to the source code of this file.

Classes

class  LvArray::ChaiBuffer< T >
 Implements the Buffer interface using CHAI. More...
 

Namespaces

 LvArray
 The top level namespace.
 

Functions

chai::ArrayManager & LvArray::internal::getArrayManager ()
 
chai::ExecutionSpace LvArray::internal::toChaiExecutionSpace (MemorySpace const space)
 
MemorySpace LvArray::internal::toMemorySpace (chai::ExecutionSpace const space)
 

Variables

static std::mutex LvArray::internal::chaiLock
 chai is not threadsafe so we use a lock to serialize access.
 

Detailed Description

Contains the implementation of LvArray::ChaiBuffer.

Function Documentation

◆ getArrayManager()

chai::ArrayManager& LvArray::internal::getArrayManager ( )
inline
Returns
The chai::ArrayManager instance.

◆ toChaiExecutionSpace()

chai::ExecutionSpace LvArray::internal::toChaiExecutionSpace ( MemorySpace const  space)
inline
Returns
The chai::ExecutionSpace corresponding to space.
Parameters
spaceThe MemorySpace to convert.

◆ toMemorySpace()

MemorySpace LvArray::internal::toMemorySpace ( chai::ExecutionSpace const  space)
inline
Returns
The MemorySpace corresponding to space.
Parameters
spaceThe chai::ExecutionSpace to convert.