boost::split(subparts, alloc, boost::is_any_of(","), boost::token_compress_on);
if ((int)subparts.size() != job->app_size)
boost::split(subparts, alloc, boost::is_any_of(","), boost::token_compress_on);
if ((int)subparts.size() != job->app_size)
// Let's read the filename
std::ifstream traces_file(job->filename);
if (!traces_file.is_open())
// Let's read the filename
std::ifstream traces_file(job->filename);
if (!traces_file.is_open())
job->traces_filenames.resize(job->app_size);
XBT_INFO("Job read: app='%s', file='%s', size=%d, start=%d, "
job->traces_filenames.resize(job->app_size);
XBT_INFO("Job read: app='%s', file='%s', size=%d, start=%d, "
job->smpi_app_name.c_str(), filename_unprefixed.c_str(), job->app_size, job->starting_time,
alloc.c_str());
jobs.push_back(job);
job->smpi_app_name.c_str(), filename_unprefixed.c_str(), job->app_size, job->starting_time,
alloc.c_str());
jobs.push_back(job);
- } catch (const std::exception& e) {
- printf("Bad line '%s' of file '%s': %s.\n", line.c_str(), workload_file.c_str(), e.what());
+ } catch (const std::invalid_argument& e) {
+ xbt_die("Bad line '%s' of file '%s': %s.\n", line.c_str(), workload_file.c_str(), e.what());