DP3
Functions
Common.h File Reference
#include <cudawrappers/cu.hpp>

Go to the source code of this file.

Functions

template<typename T >
T * Cast (cu::DeviceMemory &m)
 

Function Documentation

◆ Cast()

template<typename T >
T* Cast ( cu::DeviceMemory &  m)

This helper function is needed because the Launch*Kernel functions receive cu::DeviceMemory references, while the GPU kernels require the actual pointer type instead.