Skip to content

Add measurement of overall compile time to migraphx-driver#4863

Open
apwojcik wants to merge 6 commits into
developfrom
driver_time
Open

Add measurement of overall compile time to migraphx-driver#4863
apwojcik wants to merge 6 commits into
developfrom
driver_time

Conversation

@apwojcik
Copy link
Copy Markdown
Collaborator

@apwojcik apwojcik commented May 8, 2026

The change has been migrated from the uai-develop branch.

The PR adds a command-line option to migraphx-driver to measure overall compile time.

@apwojcik apwojcik requested a review from causten as a code owner May 8, 2026 09:19
@apwojcik apwojcik added Windows Related changes for Windows Environments UAI labels May 8, 2026
Comment thread src/driver/main.cpp Outdated
<< std::chrono::duration_cast<std::chrono::milliseconds>(e - s).count()
<< "ms";
}
};
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already have a timer class, you should reuse that.

@apwojcik apwojcik requested a review from pfultz2 May 11, 2026 12:24
Comment thread src/driver/main.cpp Outdated
Comment thread src/driver/main.cpp Outdated
ap(to_int8, {"--int8"}, ap.help("Quantize for int8"), ap.set_value(true));
ap(to_fp8, {"--fp8"}, ap.help("Quantize for fp8"), ap.set_value(true));
ap(to_int4, {"--int4-weights"}, ap.help("Quantize weights for int4"), ap.set_value(true));
ap(report_time, {"--time"}, ap.help("Report compilation time"), ap.set_value(true));
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The flag should be --report-compile-time a --time is just too ambiguous.

Although I think this should just be enabled by default.

Comment thread src/driver/main.cpp Outdated
bool to_fp8 = false;
bool to_int8 = false;
bool to_int4 = false;
bool report_time = false;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be named repport_compile_time.

apwojcik and others added 2 commits May 12, 2026 14:31
Co-authored-by: Paul Fultz II <paul.fultz@amd.com>
@apwojcik apwojcik requested a review from pfultz2 May 12, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

UAI Windows Related changes for Windows Environments

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants