You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This adds processor affinity passthrough option for BDN runs that is defined in the yml files. This also sets up Roslyn and Ml.NET to us this affinity parameter. This will likely be quickly iterated on once a path forward for passing environment variables through is figured out.
The reason will be displayed to describe this comment to others. Learn more.
it would be worth mentioning the binary equivalent of them to specify that we are affinitizing every other cores for x64 because we assume hyper-threading is ON for them. Likewise for arm64.
The reason will be displayed to describe this comment to others. Learn more.
@adamsitnik - I checked the BDN code, but just want to confirm my understanding. We launch the process, set the affinity mask and then start the benchmark execution, right? Because, ProcessorAffinity field of Process object can only be set after the process is launched.
This also sets up Roslyn and Ml.NET to us this affinity parameter.
May I ask what was the reason behind making this change? I am just curious.
We want to check if Arm64 has performance parity with x64 and we want to measure it in a similar configuration environment. Setting the affinity will make sure that they both are executed with same core count (since hyper threading is ON in x64, it is set to 0x55 and for Arm64 it is 0xF). Hope that helps!
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
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.
This adds processor affinity passthrough option for BDN runs that is defined in the yml files. This also sets up Roslyn and Ml.NET to us this affinity parameter. This will likely be quickly iterated on once a path forward for passing environment variables through is figured out.