Commit 02fc84f1 authored by Nguyen, Thien Minh's avatar Nguyen, Thien Minh
Browse files

Added some verbose logs to know the elapsed time of qcor steps



Signed-off-by: default avatarThien Nguyen <nguyentm@ornl.gov>
parent 5b6642ab
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -81,7 +81,8 @@ void QCORSyntaxHandler::GetReplacement(
  // Get Tokens as a string, rewrite code
  // with XACC api calls
  qcor::append_kernel(kernel_name, program_arg_types, program_parameters);

  // Add a time-stamped log message in verbose mode.
  qcor::info("[qcor syntax-handler] Start token collector.");
  auto new_src = qcor::run_token_collector(PP, Toks, bufferNames);

  //   auto random_string = [](size_t length) {
+1 −1
Original line number Diff line number Diff line
@@ -55,7 +55,7 @@ std::string run_token_collector(clang::Preprocessor &PP,
      xacc::Initialize();
    }
  }

  qcor::info("[qcor syntax-handler] XACC initialized.");
  // Loop through and partition Toks into language sets
  // for each language set, run the appropriate TokenCollector
  std::stringstream code_ss;