Skip to content
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

SPMI: Switch back to unpinned 9.0 SDK for micro benchmarks #109992

Merged
merged 10 commits into from
Nov 26, 2024

Conversation

jakobbotsch
Copy link
Member

cc @dotnet/jit-contrib

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Nov 19, 2024
Copy link
Contributor

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

@jakobbotsch

This comment was marked as outdated.

@jakobbotsch
Copy link
Member Author

Not really sure why it's failing.. I cannot reproduce the failure locally.

@jakobbotsch
Copy link
Member Author

/azp run runtime-coreclr superpmi-collect-test

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@@ -187,12 +187,13 @@ def build_and_run(coreclr_args, output_mch_name):
env_copy["NUGET_EXPERIMENTAL_CHAIN_BUILD_RETRY_POLICY"] = "9,2000"

# If `dotnet restore` fails, retry.
tfm = "net9.0"
Copy link
Member

Choose a reason for hiding this comment

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

Another option is to turn it into superpmi_benchmarks.py.template with markers like {TargetFramework} which some .proj would replace at build time to generate the real superpmi_benchmarks.py somewhere under artificats/obj. linker testing uses that mechanism to avoid updating the files each time the TFM version is bumped:

<WriteLinesToFile File="$(_projectFile)"

template:
<Project Sdk="Microsoft.NET.Sdk">

Copy link
Member Author

Choose a reason for hiding this comment

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

That's a good idea, but a bit more work than I'd like to take on here -- I opened #110043 about it

@jakobbotsch
Copy link
Member Author

/azp run runtime-coreclr superpmi-collect-test

@dotnet dotnet deleted a comment from azure-pipelines bot Nov 25, 2024
@dotnet dotnet deleted a comment from azure-pipelines bot Nov 25, 2024
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dotnet dotnet deleted a comment from azure-pipelines bot Nov 25, 2024
@dotnet dotnet deleted a comment from azure-pipelines bot Nov 25, 2024
@dotnet dotnet deleted a comment from azure-pipelines bot Nov 25, 2024
@dotnet dotnet deleted a comment from azure-pipelines bot Nov 25, 2024
@jakobbotsch
Copy link
Member Author

/azp run runtime-coreclr superpmi-collect-test

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jakobbotsch
Copy link
Member Author

It looks like the fix here was to set PERFLAB_TARGET_FRAMEWORKS to the TFM we want to restore/build for.

Looks like a small bug when collect does it replay also snuck in with #109481, so I also pushed a fix for that. Hopefully this should be the last superpmi-collect-test run...

@jakobbotsch
Copy link
Member Author

/azp run runtime-coreclr superpmi-collect-test

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jakobbotsch jakobbotsch marked this pull request as ready for review November 26, 2024 14:10
@jakobbotsch jakobbotsch merged commit b4923b3 into dotnet:main Nov 26, 2024
159 of 164 checks passed
@jakobbotsch jakobbotsch deleted the spmi-benchmarks-9.0 branch November 26, 2024 16:15
mikelle-rogers pushed a commit to mikelle-rogers/runtime that referenced this pull request Dec 10, 2024
…9992)

Also set PERFLAB_TARGET_FRAMEWORKS and fix superpmi.py when it replays during a collection.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants