Celeritas  0.5.0-56+6b053cd
Functions
ObserverPtr.device.hh File Reference

Interoperability with Thrust. More...

#include <thrust/device_ptr.h>
#include "ObserverPtr.hh"
This graph shows which files directly or indirectly include this file:

Functions

template<class T >
ObserverPtr< T, MemSpace::device > celeritas::make_observer (thrust::device_ptr< T > ptr)
 Create an observer pointer from a Thrust device pointer.
 
template<class T >
thrust::device_ptr< T > celeritas::device_pointer_cast (ObserverPtr< T, MemSpace::device > ptr)
 Create a Thrust device pointer from an Observer pointer.
 

Detailed Description

Interoperability with Thrust.