src/device/GPU_Module.cc
GPU_Module::GPU_Module(std::string const &myPtxFile)
    : ptxFile(findPtxFile(myPtxFile)) {
  // load the module
  cudaError_enum err = cuModuleLoad(&cuModule, ptxFile.c_str());
  rtt_device::GPU_Device::checkForCudaError(err);
}
//---------------------------------------------------------------------------//
// Constructor
//---------------------------------------------------------------------------//
/*!
 * \brief Constructor
 * \arg myPtxFile - the name of a ptx or cubin file.  Ptx files will be
 * compiled at runtime into cubins.  Prefer the use of cubin to ruduce runtime.
 *
 * Create a GPU_Module object.
 */
Constructor
\brief Constructor
\arg myPtxFile - the name of a ptx or cubin file.  Ptx files will be
compiled at runtime into cubins.  Prefer the use of cubin to ruduce runtime.

Create a GPU_Module object.
Constructor \ brief Constructor \ arg myPtxFile - the name of a ptx or cubin file . Ptx files will be compiled at runtime into cubins . Prefer the use of cubin to ruduce runtime . Create a GPU_Module object .
GPU_Module::GPU_Module(std::string const &myPtxFile)
    : ptxFile(findPtxFile(myPtxFile)) {
  cudaError_enum err = cuModuleLoad(&cuModule, ptxFile.c_str());
  rtt_device::GPU_Device::checkForCudaError(err);
}
GPU_Module :: GPU_Module ( std :: string const & myPtxFile ) : ptxFile ( findPtxFile ( myPtxFile ) ) { cudaError_enum err = cuModuleLoad ( & cuModule , ptxFile . c_str ( ) ) ; rtt_device :: GPU_Device :: checkForCudaError ( err ) ; }
Constructor
 \brief Constructor
 \arg myPtxFile - the name of a ptx or cubin file.
Constructor \ brief Constructor \ arg myPtxFile - the name of a ptx or cubin file .
// load the module