Template Numerical Library version\ main:4e58ea6
Loading...
Searching...
No Matches
TNL::Pointers Namespace Reference

Namespace for TNL pointers. More...

Classes

class  DevicePointer
 The DevicePointer is like SharedPointer, except it takes an existing host object - there is no call to the ObjectType's constructor nor destructor. More...
 
class  DevicePointer< Object, Devices::Cuda >
 Specialization of the DevicePointer for the CUDA device. More...
 
class  DevicePointer< Object, Devices::Host >
 Specialization of the DevicePointer for the host system. More...
 
class  SharedPointer
 Cross-device shared smart pointer. More...
 
class  SharedPointer< Object, Devices::Cuda >
 Specialization of the SharedPointer for the CUDA device. More...
 
class  SharedPointer< Object, Devices::Host >
 Specialization of the SharedPointer for the host system. More...
 
class  SmartPointer
 
class  SmartPointersRegister
 
class  UniquePointer
 Cross-device unique smart pointer. More...
 
class  UniquePointer< Object, Devices::Cuda >
 Specialization of the UniquePointer for the CUDA device. More...
 
class  UniquePointer< Object, Devices::Host >
 Specialization of the UniquePointer for the host system. More...
 

Functions

template<typename Device >
SmartPointersRegistergetSmartPointersRegister ()
 
template<typename Device >
TimergetSmartPointersSynchronizationTimer ()
 
template<typename Device >
bool synchronizeSmartPointersOnDevice (int deviceId=-1)
 

Detailed Description

Namespace for TNL pointers.

Pointers in TNL are similar to STL pointers but they work across different device.

Function Documentation

◆ synchronizeSmartPointersOnDevice()

template<typename Device >
bool TNL::Pointers::synchronizeSmartPointersOnDevice ( int deviceId = -1)

Negative deviceId means that the ID of the currently active device will be determined automatically.