OpenMPCD
Namespaces | Functions
Utilities.hpp File Reference
#include <OpenMPCD/CUDA/Macros.hpp>
#include <boost/core/enable_if.hpp>
#include <boost/type_traits/is_floating_point.hpp>
#include <boost/type_traits/is_integral.hpp>
Include dependency graph for Utilities.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 OpenMPCD::CUDA
 Namespace for simulations using CUDA.
 
 OpenMPCD::CUDA::DeviceCode
 Contains CUDA Device code.
 

Functions

OPENMPCD_CUDA_DEVICE void OpenMPCD::CUDA::DeviceCode::atomicAdd (double *const target, const double increment)
 Atomically adds increment to target. More...
 
OPENMPCD_CUDA_DEVICE void OpenMPCD::CUDA::DeviceCode::atomicAdd (float *const target, const float increment)
 Atomically adds increment to target. More...
 
template<typename B >
OPENMPCD_CUDA_HOST_AND_DEVICE boost::enable_if< boost::is_integral< B >, double >::type OpenMPCD::CUDA::DeviceCode::pow (const B base, const double exponent)
 The power function. More...
 
OPENMPCD_CUDA_HOST_AND_DEVICE double OpenMPCD::CUDA::DeviceCode::pow (const double base, const double exponent)
 The power function. More...
 

Detailed Description

Defines various CUDA device code utilities.

Definition in file Utilities.hpp.