|
STIR 6.5.0
|

Classes | |
| class | stir::CudaGibbsPenalty< elemT, PotentialT > |
| A base class with CUDA-accelerated implementation of the GibbsPenalty class. More... | |
| class | stir::CudaRelativeDifferencePrior< elemT > |
| CUDA implementation of the Relative Difference prior. More... | |
Functions | |
| template<int num_dimensions, typename elemT> | |
| void | stir::array_to_device (elemT *dev_data, const Array< num_dimensions, elemT > &stir_array) |
| copy an Array to pre-allocated device memory | |
| template<int num_dimensions, typename elemT> | |
| void | stir::array_to_device (CuVec< elemT > &dev_data, const Array< num_dimensions, elemT > &stir_array) |
| copy an Array to pre-allocated CuVec | |
| template<int num_dimensions, typename elemT> | |
| void | stir::array_to_host (Array< num_dimensions, elemT > &stir_array, const elemT *dev_data, bool=true) |
| copy CUDA pointer to Array | |
| template<int num_dimensions, typename elemT> | |
| void | stir::array_to_host (Array< num_dimensions, elemT > &stir_array, const CuVec< elemT > &dev_data, bool sync=true) |
| copy CuVec to Array | |
| void stir::array_to_device | ( | elemT * | dev_data, |
| const Array< num_dimensions, elemT > & | stir_array ) |
copy an Array to pre-allocated device memory
References array_to_device().
Referenced by array_to_device(), and array_to_device().
| void stir::array_to_device | ( | CuVec< elemT > & | dev_data, |
| const Array< num_dimensions, elemT > & | stir_array ) |
copy an Array to pre-allocated CuVec
References array_to_device().
| void stir::array_to_host | ( | Array< num_dimensions, elemT > & | stir_array, |
| const elemT * | dev_data, | ||
| bool | = true ) |
copy CUDA pointer to Array
The third argument is ignored, as cudaMemcpy always syncs device and host.
References array_to_host().
Referenced by array_to_host(), and array_to_host().
| void stir::array_to_host | ( | Array< num_dimensions, elemT > & | stir_array, |
| const CuVec< elemT > & | dev_data, | ||
| bool | sync = true ) |
copy CuVec to Array
If sync = true, the function will call cudaDeviceSynchronize() before copying.
References array_to_host().