Cheetah - SKA - PSS - Prototype Time Domain Search Pipeline
CachingAllocatorImpl.cu
1 #include "cheetah/data/cuda/detail/CachingAllocatorImpl.cuh"
2 
3 namespace ska {
4 namespace cheetah {
5 namespace data {
6 
7 template <typename T>
8 T* CachingAllocatorImpl<cheetah::Cuda,T>::_allocate(std::size_t num_elements)
9 {
10  return thrust::cuda::malloc<T>(num_elements).get();
11 }
12 
13 template <typename T>
14 void CachingAllocatorImpl<cheetah::Cuda,T>::_free(T* ptr)
15 {
16  thrust::cuda::free(thrust::cuda::pointer<T>(ptr));
17 }
18 
19 } // namespace data
20 } // namespace cheetah
21 } // namespace ska
Some limits and constants for FLDO.
Definition: Brdz.h:35