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

[RQD] Fix core detection on Windows platforms #1468

Conversation

anton-ubi
Copy link
Contributor

@anton-ubi anton-ubi commented Aug 14, 2024

Link the Issue(s) this Pull Request is related to.
#1469

Summarize your change.
Fix an error on Windows platforms where a submitted job could not be picked up properly due to available processors incorrect detection.

The reserveHT method of the RQD Machine class relies on a __procs_by_physid_and_coreid attribute that is not correctly filled when on a Windows platform.

See:

Copy link

linux-foundation-easycla bot commented Aug 14, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

@anton-ubi anton-ubi force-pushed the bug/windows_core_detection branch from 9e79b17 to d8e4190 Compare August 14, 2024 17:53
@anton-ubi anton-ubi changed the title Bug/windows core detection [RQD] Fix core detection on Windows platforms Aug 14, 2024
@anton-ubi anton-ubi force-pushed the bug/windows_core_detection branch from d8e4190 to ddeb921 Compare August 14, 2024 18:20
Copy link
Collaborator

@DiegoTavares DiegoTavares left a comment

Choose a reason for hiding this comment

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

Just minor comments. Everything else looks good to me.

rqd/rqd/rqmachine.py Outdated Show resolved Hide resolved
rqd/rqd/rqmachine.py Outdated Show resolved Hide resolved
@DiegoTavares
Copy link
Collaborator

DiegoTavares commented Aug 14, 2024

Hi @anton-ubi

If I'm not mistaken, this is your first contribution. Welcome to the project.

Please sign the CLA to get the pipeline unblocked.

@anton-ubi
Copy link
Contributor Author

Hi @anton-ubi

If I'm not mistaken, this is your first contribution. Welcome to the project.

Please sign the CLA to get the pipeline unblocked.

Yes it is. Thank you. I'll look into that.

rqd/setup.py Outdated Show resolved Hide resolved
DiegoTavares and others added 2 commits October 9, 2024 11:13
Co-authored-by: Kern Attila GERMAIN <[email protected]>
Signed-off-by: Diego Tavares <[email protected]>
Signed-off-by: Diego Tavares <[email protected]>
@DiegoTavares
Copy link
Collaborator

There are still some lint errors to be fixed before we can merge this PR

@anton-ubi anton-ubi marked this pull request as ready for review October 23, 2024 17:11
@KernAttila
Copy link
Contributor

@anton-ubi I'm in the process of implementing a proper core detection mechanism for Windows without dependency to WMI.
I forked your version here: https://github.com/KernAttila/OpenCue/tree/bug/windows_core_detection
It detects cores for normal and hybrid cpus properly.

@DiegoTavares DiegoTavares merged commit eb494e7 into AcademySoftwareFoundation:master Dec 4, 2024
12 checks passed
@anton-ubi
Copy link
Contributor Author

anton-ubi commented Dec 5, 2024 via email

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.

3 participants