src/device/GPU_Device.cc
void *GPU_Device::MemAlloc(unsigned const nbytes) {
  void *ptr;
  cudaError_t err = cudaMalloc(&ptr, nbytes);
  checkForCudaError(err);
  return ptr;
}
//------------------------------------------------------------------------------------------------//
/*!
 * \brief Wrap the cudaMemAlloc 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 cudaMemAlloc funtion to include error checking
\param nbytes number of bytes to allocate  ).
\return GPU device pointer to allocated memory.
\ brief Wrap the cudaMemAlloc funtion to include error checking \ param nbytes number of bytes to allocate ) . \ return GPU device pointer to allocated memory .
void *GPU_Device::MemAlloc(unsigned const nbytes) {
  void *ptr;
  cudaError_t err = cudaMalloc(&ptr, nbytes);
  checkForCudaError(err);
  return ptr;
}
void * GPU_Device :: MemAlloc ( unsigned const nbytes ) { void * ptr ; cudaError_t err = cudaMalloc ( & ptr , nbytes ) ; checkForCudaError ( err ) ; return ptr ; }
\brief Wrap the cudaMemAlloc funtion to include error checking
 \param nbytes number of bytes to allocate (e.g.
\ brief Wrap the cudaMemAlloc funtion to include error checking \ param nbytes number of bytes to allocate ( e . g .