EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Acts::Cuda Namespace Reference

Namespaces

namespace  Details
 

Classes

class  SeedFinder
 
struct  TripletFilterConfig
 Structure holding pointers to the user defined filter functions. More...
 

Typedefs

template<typename T >
using device_array = std::unique_ptr< T, Details::DeviceArrayDeleter >
 Convenience type for using primitive variable arrays on a CUDA device.
 
template<typename T >
using host_array = std::unique_ptr< T, Details::HostArrayDeleter >
 Convenience type for using primitive variable arrays on the host.
 

Functions

template<typename T >
device_array< Tmake_device_array (std::size_t size)
 Function creating a primitive array in CUDA device memory.
 
template<typename T >
host_array< Tmake_host_array (std::size_t size)
 Function creating a primitive array in the host's memory.
 
template<typename T >
void copyToDevice (device_array< T > &dev, const host_array< T > &host, std::size_t arraySize)
 Copy one array from the host to the device.
 
template<typename T >
void copyToHost (host_array< T > &host, const device_array< T > &dev, std::size_t arraySize)
 Copy one array from the device to the host.
 

Typedef Documentation

template<typename T >
using Acts::Cuda::device_array = typedef std::unique_ptr<T, Details::DeviceArrayDeleter>

Convenience type for using primitive variable arrays on a CUDA device.

Definition at line 42 of file Arrays.hpp.

View newest version in sPHENIX GitHub at line 42 of file Arrays.hpp

template<typename T >
using Acts::Cuda::host_array = typedef std::unique_ptr<T, Details::HostArrayDeleter>

Convenience type for using primitive variable arrays on the host.

Definition at line 50 of file Arrays.hpp.

View newest version in sPHENIX GitHub at line 50 of file Arrays.hpp

Function Documentation

template<typename T >
void Acts::Cuda::copyToDevice ( device_array< T > &  dev,
const host_array< T > &  host,
std::size_t  arraySize 
)

Copy one array from the host to the device.

Referenced by Acts::Cuda::SeedFinder< external_spacepoint_t >::createSeedsForGroup().

+ Here is the caller graph for this function:

template<typename T >
void Acts::Cuda::copyToHost ( host_array< T > &  host,
const device_array< T > &  dev,
std::size_t  arraySize 
)

Copy one array from the device to the host.

template<typename T >
device_array<T> Acts::Cuda::make_device_array ( std::size_t  size)

Function creating a primitive array in CUDA device memory.

template<typename T >
host_array<T> Acts::Cuda::make_host_array ( std::size_t  size)

Function creating a primitive array in the host's memory.