src/device/GPU_Module.cc
CUfunction
GPU_Module::getModuleFunction(std::string const &functionName) const {
  // Load the kernel from the module
  CUfunction kernel;
  cudaError_enum err =
      cuModuleGetFunction(&kernel, cuModule, functionName.c_str());
  GPU_Device::checkForCudaError(err);
  return kernel;
}
//---------------------------------------------------------------------------//
/*! 
 * \brief Find a function in the current module and return a handle.
 * 
 * \param functionName the name of the CUDA function difined in the ptx
 *                     module. 
 * \return a CUfunction handle that points to the requested function.
 */
\brief Find a function in the current module and return a handle.

\param functionName the name of the CUDA function difined in the ptx
module.
\return a CUfunction handle that points to the requested function.
\ brief Find a function in the current module and return a handle . \ param functionName the name of the CUDA function difined in the ptx module . \ return a CUfunction handle that points to the requested function .
CUfunction
GPU_Module::getModuleFunction(std::string const &functionName) const {
  CUfunction kernel;
  cudaError_enum err =
      cuModuleGetFunction(&kernel, cuModule, functionName.c_str());
  GPU_Device::checkForCudaError(err);
  return kernel;
}
CUfunction GPU_Module :: getModuleFunction ( std :: string const & functionName ) const { CUfunction kernel ; cudaError_enum err = cuModuleGetFunction ( & kernel , cuModule , functionName . c_str ( ) ) ; GPU_Device :: checkForCudaError ( err ) ; return kernel ; }
\brief Find a function in the current module and return a handle.
\ brief Find a function in the current module and return a handle .
// Load the kernel from the module