CUDA/Thrust implementation of the Tdrt algorithm.
More...
|
typedef cheetah::Cuda | Architecture |
|
typedef panda::nvidia::DeviceCapability< 2, 0, panda::nvidia::giga/2 > | ArchitectureCapability |
|
typedef panda::PoolResource< Architecture > | ResourceType |
|
|
| Tdrt (Config const &config, tdrt::Config const &algo_config) |
|
| Tdrt (Tdrt const &)=delete |
|
| Tdrt (Tdrt &&)=default |
|
template<typename T , typename Alloc > |
void | process (ResourceType &gpu, data::TimeSeries< Architecture, T, Alloc > const &input, data::TimeSeries< Architecture, T, Alloc > &output, data::AccelerationType acceleration) |
| Resample a time series to a given acceleration. More...
|
|
| AlgorithmBase (Config const &impl_config, tdrt::Config const &algo_config) |
|
| AlgorithmBase (AlgorithmBase const &)=delete |
|
| AlgorithmBase (AlgorithmBase &&)=default |
|
CUDA/Thrust implementation of the Tdrt algorithm.
Definition at line 22 of file Tdrt.cuh.
◆ process()
template<typename T , typename Alloc >
void ska::cheetah::tdrt::cuda::Tdrt::process |
( |
ResourceType & |
gpu, |
|
|
data::TimeSeries< Architecture, T, Alloc > const & |
input, |
|
|
data::TimeSeries< Architecture, T, Alloc > & |
output, |
|
|
data::AccelerationType |
acceleration |
|
) |
| |
Resample a time series to a given acceleration.
- Parameters
-
| gpu | The gpu to be processed on |
| input | The input time series |
| output | The output time series |
[in] | acceleration | The acceleration value to resample to |
- Template Parameters
-
T | The value types of input and output |
Alloc | The allocator types of input and output |
Definition at line 13 of file Tdrt.cu.
18 typedef thrust::counting_iterator<std::size_t> CountIt;
19 typedef thrust::transform_iterator< TdrtMap, CountIt > MapIt;
20 PANDA_LOG_DEBUG <<
"GPU ID: "<<gpu.device_id();
21 output.resize(input.size());
23 MapIt iter(begin, TdrtMap(acceleration, input.size(), input.sampling_interval()));
24 thrust::gather(thrust::cuda::par,
29 output.sampling_interval(input.sampling_interval());
The documentation for this class was generated from the following files: