Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrantq committed Nov 4, 2024
1 parent e433e5d commit 08c4db8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions enzyme/Enzyme/Herbie.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3322,7 +3322,7 @@ void extractValueFromLog(const std::string &logPath,
std::string line;
std::regex valuePattern("^Value:" + functionName + ":" +
std::to_string(blockIdx) + ":" +
std::to_string(instIdx));
std::to_string(instIdx) + "$");
std::regex newEntryPattern("^(Value|Grad):");

while (getline(file, line)) {
Expand Down Expand Up @@ -3391,7 +3391,7 @@ bool extractGradFromLog(const std::string &logPath,
std::string line;
std::regex gradPattern("^Grad:" + functionName + ":" +
std::to_string(blockIdx) + ":" +
std::to_string(instIdx));
std::to_string(instIdx) + "$");

while (getline(file, line)) {
if (std::regex_search(line, gradPattern)) {
Expand Down

0 comments on commit 08c4db8

Please sign in to comment.