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

Affinity-based Feature Query Restructuring #6

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

awr1
Copy link
Owner

@awr1 awr1 commented Apr 30, 2021

Fixes #5, will ideally hold onto this until we can get this tested on Alder Lake samples. Work in progress.

Not tested yet, tries to query features on every thread,
requiring major restructuring. Added affinity parameter to
most available feature query functions.
By default feature queries should probably look at the current
core/thread, instead of the attributes of the first core.
pinToCPU() requires the thread actually be running (by virtue of, e.g.
SetThreadAffinityMask()), so we use a lock to coordinate this correctly.
Put stuff like hasCongruentISA() in main module, other procs like
currentAffinity() in new info_common module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Core-specific Feature Query
1 participant