#include #include "parser_dax.hpp" int main (int argc, char** argv) { bool dryrun = false; try { if ( argc != 3 ) { std::cerr << "\n\tusage: " << argv[0] << " \n\n"; return -1; } digedag::dax::parser p (argv[1]); digedag::dag * d = p.get_dag (); d->set_scheduler (argv[2]); // allow for pre-run scheduling d->schedule (); // d->dump (); // run the dag. This also performs scheduling on-the-fly if ( dryrun ) { d->dryrun (); } else { d->fire (); // wait til the dag had a chance to finish d->wait (); } delete d; } catch ( const char * s ) { std::cerr << "char* exception: " << s << std::endl; } catch ( const std::string & s ) { std::cerr << "string exception: " << s << std::endl; } catch ( const saga::exception & e ) { std::cerr << "oops exception: " << e.what () << std::endl; } return 0; }