+
Skip to content

Update the "end of search" criteria in benchmark_scrape_classic_timers.py to avoid being spoofed by output from Intel VTune #365

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 26, 2025

Conversation

yantosca
Copy link
Contributor

Name and Institution (Required)

Name: Bob Yantosca
Institution: Harvard + GCST

Describe the update

In gcpy/benchmark/modules/benchmark_scrape_gcclassic.timers.py, the code starts reading the timers information backwards from the end of the file. The signal to stop reading was if a line contained ----------. However, when output from the Intel VTune profiler is appended to the end of a GEOS-Chem Classic log file, there is a line with at least many - characters, which causes the parsing of the file to end before the timing information is reached.

The solution is to change the criteria to look for a line with 78 - characters in a row (which occurs just before GEOS-Chem timer row. This will allow the parsing of the log file to proceed normally.

NOTE: This is not an issue when benchmark_scrape_gcclassic_timers.py reads the gcclassic_timers.json file.

Expected changes

This will allow benchmark_scrape_gcclassic_timers.py to be able to read the GEOS-Chem timing information from log files where Intel VTune has appended a report to the end of the file.

gcpy/benchmark/modules/benchmark_scrape_gcclassic_timers.py
- Updated the marker that denotes when to stop reading from a
  GEOS-Chem Classic log file from "----------" to "-"*78 (that is,
  78 dashes in a row).  This is necessary in order to prevent text
  appended by Intel VTune to the end of a GEOS-Chem log file from
  interfering with the scraping of the timers.

CHANGELOG.md
- Updated accordingly

Signed-off-by: Bob Yantosca <yantosca@seas.harvard.edu>
@yantosca yantosca added this to the 1.6.3 milestone Jun 25, 2025
@yantosca yantosca self-assigned this Jun 25, 2025
@yantosca yantosca added topic: Benchmark Plots and Tables Issues pertaining to generating plots/tables from benchmark output category: Bug Fix Fixes a bug that was previously reported labels Jun 25, 2025
@yantosca yantosca merged commit 5deccdc into dev Jun 26, 2025
17 checks passed
@yantosca yantosca deleted the bugfix/benchmark-timers branch June 26, 2025 15:27
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: Bug Fix Fixes a bug that was previously reported topic: Benchmark Plots and Tables Issues pertaining to generating plots/tables from benchmark output
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载