Skip to content

Add get_cpu_range utility#94

Merged
rafaelfolco merged 1 commit intomainfrom
get-cpu-range
Apr 24, 2025
Merged

Add get_cpu_range utility#94
rafaelfolco merged 1 commit intomainfrom
get-cpu-range

Conversation

@rafaelfolco
Copy link
Contributor

Use the cpu_formatted_list method from system_topology class to convert list to range.

Copy link
Contributor

@k-rister k-rister left a comment

Choose a reason for hiding this comment

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

This looks great but this script should be in in the bin/ directory instead of python/toolbox/ since it's a generic utility that anyone should be able to use.

@rafaelfolco
Copy link
Contributor Author

This looks great but this script should be in in the bin/ directory instead of python/toolbox/ since it's a generic utility that anyone should be able to use.

Ok, I missed that part :)

@rafaelfolco rafaelfolco marked this pull request as draft April 23, 2025 15:03
@k-rister
Copy link
Contributor

The individual language directories (bash, perl, python, etc.) are for libraries that support those languages. Stand alone scripts that are called like binaries should go in bin/.

This utility imports the system_topology module to convert a cpu
list to range.
@rafaelfolco rafaelfolco marked this pull request as ready for review April 23, 2025 17:08
@rafaelfolco rafaelfolco self-assigned this Apr 23, 2025
@rafaelfolco rafaelfolco requested a review from k-rister April 23, 2025 17:12
@rafaelfolco rafaelfolco merged commit d88b54c into main Apr 24, 2025
227 of 230 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Crucible Tracking Apr 24, 2025
@rafaelfolco rafaelfolco deleted the get-cpu-range branch April 24, 2025 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants