SG++-Doxygen-Documentation
Loading...
Searching...
No Matches
ParallelMiner.cpp File Reference
#include <sgpp/datadriven/datamining/base/SparseGridMiner.hpp>
#include <sgpp/datadriven/datamining/builder/UniversalMinerFactory.hpp>
#include <sgpp/datadriven/scalapack/BlacsProcessGrid.hpp>
#include <cstdlib>
#include <iostream>
#include <memory>
#include <string>

Functions

int main (int argc, char **argv)
 This example demonstrates how a parallel (distributed) sgpp::datadriven::SparseGridMiner is constructed using a configuration file and how it is then used.
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

This example demonstrates how a parallel (distributed) sgpp::datadriven::SparseGridMiner is constructed using a configuration file and how it is then used.

Initialize MPI, BLACS and ScaLAPACK

use immediately invoked lambda expression to get the path to a configuration file.

We need a factory class to actually build the sgpp::datadriven::SparseGridMiner.

The miner object is constructed by the factory from a supplied configuration file.

Once we have a configured miner object, we can start the learning process.

exit BLACS, MPI (in outer scope to ensure all blacs grids were destructed before)

References sgpp::datadriven::BlacsProcessGrid::exitBlacs(), and sgpp::datadriven::BlacsProcessGrid::initializeBlacs().