diff --git a/llvm/projects/hpvm-tensor-rt/tensor_runtime/src/hpvm-rt-controller.cpp b/llvm/projects/hpvm-tensor-rt/tensor_runtime/src/hpvm-rt-controller.cpp index f716aaf783c7d3fb9ae9885c0ee561cb679031f4..6574b5daa9b25e5e5f5f3b61a3d9e11be6b69ea1 100644 --- a/llvm/projects/hpvm-tensor-rt/tensor_runtime/src/hpvm-rt-controller.cpp +++ b/llvm/projects/hpvm-tensor-rt/tensor_runtime/src/hpvm-rt-controller.cpp @@ -519,9 +519,15 @@ void RuntimeController::readConfigurationFile(const char *str) { std::string first_line; std::getline(qin, first_line); DEBUG("first_line: %s\n", first_line.c_str()); - baseline_time = std::stod(first_line); - DEBUG("Baseline time: %lf\n\n", baseline_time); + try{ + baseline_time = std::stod(first_line); + DEBUG("Baseline time: %lf\n\n", baseline_time); + } + catch(...){ + ERROR("Please Add/Fix Baseline Time at Top of Config File.. "); + } + for (std::string line; std::getline(qin, line);) { DEBUG("line: %s\n", line.c_str());