latex table #795
Open
oflatt wants to merge 3 commits into
Open
Conversation
There was a problem hiding this comment.
Copilot reviewed 3 out of 3 changed files in this pull request and generated 8 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| # Generate the plots | ||
| print("Generating graphs...") | ||
| make_graphs(str(output_dir), str(paper_dir), str(profile_json), "benchmarks/passing", config) | ||
| #make_graphs(str(output_dir), str(paper_dir), str(profile_json), "benchmarks/passing", config) |
Comment on lines
+158
to
+165
| def raytrace_total_region_extract_time(data): | ||
| res = 0.0 | ||
| row = get_row(data, "raytrace", "eggcc-tiger-ILP-COMPARISON") | ||
| timings = row["extractRegionTimings"] | ||
| for timing in timings: | ||
| res += duration_to_seconds(timing["extract_time_liveon_satelliteon"]) | ||
| print("here it is") | ||
| print(res) No newline at end of file |
Comment on lines
+1
to
+5
| import profile | ||
| import os | ||
| import math | ||
| from graph_helpers import * | ||
| from generate_line_counts import stddev_cycles |
Comment on lines
+130
to
+132
| def make_compact_data_for_suite(data, suite): | ||
| benchmarks = dedup([b['benchmark'] for b in data if b.get('suite') == suite]) | ||
| return _make_compact_data_for_benchmarks(data, benchmarks) |
Comment on lines
+266
to
+275
| def cycles_to_ms(cycles): | ||
| hz = 4000000000 | ||
| ms = cycles * 1000 / hz | ||
| return round(ms * 100.0) / 100.0 | ||
|
|
||
|
|
||
| def cycles_to_us(cycles): | ||
| hz = 4000000000 | ||
| us = cycles * 1000000 / hz | ||
| return round(us * 100.0) / 100.0 |
Comment on lines
+47
to
+53
| def render_cell(c): | ||
| s = str(c) | ||
| # Render "X +- Y" as math with \pm so it typesets nicely. | ||
| if " +- " in s: | ||
| left, right = s.split(" +- ", 1) | ||
| return f"{render_unit_suffix(left)} $\\pm$ {latex_escape(right)}" | ||
| return latex_escape(s) |
Comment on lines
+64
to
+68
| if caption is not None: | ||
| cap = r"\caption{" + latex_escape(caption) + "}" | ||
| if label is not None: | ||
| cap += r"\label{" + label + "}" | ||
| lines.append(cap + r" \\") |
| benchmarks = dedup([b['benchmark'] for b in data if b.get('suite') == suite]) | ||
| return _make_compact_data_for_benchmarks(data, benchmarks) | ||
|
|
||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.