src/device/GPU_Device.cc
CUdeviceptr GPU_Device::MemAlloc(unsigned const nbytes) {
  CUdeviceptr ptr;
  cudaError_enum err = cuMemAlloc(&ptr, nbytes);
  checkForCudaError(err);
  return ptr;
}
//---------------------------------------------------------------------------//
/*!
 * \brief Wrap the cuMemAlloc funtion to include error checking
 *
 * \param nbytes number of bytes to allocate (e.g.: len*sizeof(double) ).
 * \return GPU device pointer to allocated memory.
 */
\brief Wrap the cuMemAlloc funtion to include error checking
\param nbytes number of bytes to allocate  ).
\return GPU device pointer to allocated memory.
\ brief Wrap the cuMemAlloc funtion to include error checking \ param nbytes number of bytes to allocate ) . \ return GPU device pointer to allocated memory .
CUdeviceptr GPU_Device::MemAlloc(unsigned const nbytes) {
  CUdeviceptr ptr;
  cudaError_enum err = cuMemAlloc(&ptr, nbytes);
  checkForCudaError(err);
  return ptr;
}
CUdeviceptr GPU_Device :: MemAlloc ( unsigned const nbytes ) { CUdeviceptr ptr ; cudaError_enum err = cuMemAlloc ( & ptr , nbytes ) ; checkForCudaError ( err ) ; return ptr ; }
\brief Wrap the cuMemAlloc funtion to include error checking
 \param nbytes number of bytes to allocate (e.g.
\ brief Wrap the cuMemAlloc funtion to include error checking \ param nbytes number of bytes to allocate ( e . g .