OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
olb::gpu::cuda::Column< T >::Data Struct Reference

#include <column.hh>

+ Collaboration diagram for olb::gpu::cuda::Column< T >::Data:

Public Member Functions

 Data (std::size_t count)
 
void resize (std::size_t newCount)
 

Public Attributes

thrust::host_vector< T > host
 
thrust::device_vector< T > device
 

Detailed Description

template<typename T>
struct olb::gpu::cuda::Column< T >::Data

Definition at line 47 of file column.hh.

Constructor & Destructor Documentation

◆ Data()

template<typename T >
olb::gpu::cuda::Column< T >::Data::Data ( std::size_t count)
inline

Definition at line 51 of file column.hh.

51 :
52 host(count),
53 device(count)
54 { }
thrust::device_vector< T > device
Definition column.hh:49
thrust::host_vector< T > host
Definition column.hh:48

Member Function Documentation

◆ resize()

template<typename T >
void olb::gpu::cuda::Column< T >::Data::resize ( std::size_t newCount)
inline

Definition at line 56 of file column.hh.

57 {
58 host.resize(newCount);
59 device.resize(newCount);
60 }

Member Data Documentation

◆ device

template<typename T >
thrust::device_vector<T> olb::gpu::cuda::Column< T >::Data::device

Definition at line 49 of file column.hh.

◆ host

template<typename T >
thrust::host_vector<T> olb::gpu::cuda::Column< T >::Data::host

Definition at line 48 of file column.hh.


The documentation for this struct was generated from the following file: