Skip to content

Change the default SuperPMI collection location#78513

Merged
BruceForstall merged 1 commit into
dotnet:mainfrom
BruceForstall:ChangeDefaultSpmiCollectOutputMchFile
Nov 29, 2022
Merged

Change the default SuperPMI collection location#78513
BruceForstall merged 1 commit into
dotnet:mainfrom
BruceForstall:ChangeDefaultSpmiCollectOutputMchFile

Conversation

@BruceForstall

@BruceForstall BruceForstall commented Nov 17, 2022

Copy link
Copy Markdown
Contributor

When using superpmi.py collect, change the default output MCH file to be located in the current directory, not the "spmi" location. Also, add logic so multiple sequential collections using a default file name don't overwrite each other.

When using `superpmi.py collect`, change the default output MCH
file to be located in the current directory, not the "spmi" location.
Also, add logic so multiple concurrent collections using a default
file name don't overwrite each other.
@ghost ghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Nov 17, 2022
@ghost ghost assigned BruceForstall Nov 17, 2022
@ghost

ghost commented Nov 17, 2022

Copy link
Copy Markdown

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

Issue Details

When using superpmi.py collect, change the default output MCH file to be located in the current directory, not the "spmi" location. Also, add logic so multiple concurrent collections using a default file name don't overwrite each other.

Author: BruceForstall
Assignees: -
Labels:

area-CodeGen-coreclr

Milestone: -

@BruceForstall

Copy link
Copy Markdown
Contributor Author

@jakobbotsch @dotnet/jit-contrib PTAL

@BruceForstall

Copy link
Copy Markdown
Contributor Author

@dotnet/jit-contrib anyone?

@kunalspathak

Copy link
Copy Markdown
Contributor

change the default output MCH file to be located in the current directory, not the "spmi" location.

Could you confirm what is the motivation behind this change? Is it just the convivence or you hit any problems with it?

else:
# Default directory is the current working directory (before we've changed the directory using "TempDir")
default_mch_location = os.path.abspath(os.getcwd())
if not os.path.isdir(default_mch_location):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

In what case os.getcwd() would return a location that is not a directory? When it is ran from C:\ or something?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah, getcwd should already return an existing directory.

@BruceForstall

Copy link
Copy Markdown
Contributor Author

Could you confirm what is the motivation behind this change? Is it just the convivence or you hit any problems with it?

It's pure convenience. If I run "superpmi.py collect repro.bat" I want the resulting MCH file to be in the current directory, not in some directory near all the cached, downloaded MCH files. Of course, you can specify -output_mch_path to whatever you want.

@BruceForstall
BruceForstall merged commit 4b9e3c0 into dotnet:main Nov 29, 2022
@BruceForstall
BruceForstall deleted the ChangeDefaultSpmiCollectOutputMchFile branch November 29, 2022 01:43
@ghost ghost locked as resolved and limited conversation to collaborators Dec 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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