-
Notifications
You must be signed in to change notification settings - Fork 202
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
number of available cpus (in cpuset) #700
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
80bd425
Keep cpuset in mind with setting parallelism
wpoely86 b5a2d2e
Small improvements to get_avail_core_count()
wpoely86 2dfd627
Print warning when not in Linux in get_avail_core_count()
wpoely86 2cb27c5
get_avail_core_count(): made code more compact
wpoely86 55300fd
Merge branch 'develop' into numcpus
boegel 48207a8
get_avail_core_count(): bug fix when not in cpuset
wpoely86 ff293ab
get_avail_core_count(): small regex bugfix
wpoely86 51342a0
Updated to use sched_getaffinity() in get_avail_core_count()
wpoely86 2ad63d3
Merge branch 'numcpus' of github.com:wpoely86/easybuild-framework int…
boegel a7f0ea2
Added deprecated warning for get_core_count()
wpoely86 871bd1d
deprecate get_core_count, update vsc.utils
boegel 81d0ae3
include latest FULL version of vsc-base
boegel 5618806
disable declaring of vsc namespace
boegel 5e5b2bc
Merge pull request #740 from boegel/full_vsc_base
boegel bb647d5
Merge pull request #739 from boegel/tcl_module_fixes
boegel e107198
improve comments
boegel b635418
Merge branch 'numcpus' of github.com:wpoely86/easybuild-framework int…
boegel af40b65
readd sysctl approach for non-Linux systems, and fail hard it that di…
boegel dbd0ee6
Merge branch 'numcpus' into test
boegel 0206394
check both get_core_count and get_avail_core_count in unit test, add …
boegel 041e75e
fix syntax error in test_core_count
boegel 99315ae
fix another syntax error in test_core_count
boegel b2bb259
provide previous code as fallback in case sched_getaffinity is broken
boegel 1b0999e
rework fallback in get_avail_core_count, cpuset ranges is a filter on…
boegel 46c324f
clean up implementation via proper mask and counting bits
boegel c787619
restore environment after each modules.py unit test since they involv…
boegel 7ce51f9
restore environment after purging modules in options.py unit tests
boegel 22059ad
fix remark
boegel 6ae37cf
get_avail_core_count(): use long instead of int
wpoely86 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
Code from https://github.com/hpcugent/vsc-base | ||
|
||
based on 19c7ebcdc3f329b20450b5f703bd846c5b222ca5 | ||
based on 2f42ee01237ec7a7c1ef0247c2dbd64a5dae086c |
This file contains 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
Empty file.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wpoely86: Be very careful with renaming functions, since you're changing the API that way... In this case, you've missed the
get_core_count
call ineasybuild/main.py
, so please change it there too.It's good practice to deprecate the old function, so please include this in
systemtools.py
:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, I was too quick. I've readded
get_core_count()
.