Skip to content

Commit

Permalink
Get number of cores from getconf
Browse files Browse the repository at this point in the history
This should work with both OS X and Linux. Partially fixes
#206.
  • Loading branch information
annawoodard committed Apr 17, 2018
1 parent 50e195b commit 645c8f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libsubmit/libsubmit/launchers/launchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def singleNodeLauncher(cmd_string, taskBlocks, walltime=None):
- walltime (int) : This is not used by this launcher.
'''

x = '''export CORES=$(grep -c ^processor /proc/cpuinfo)
x = '''export CORES=$(getconf _NPROCESSORS_ONLN)
echo "Found cores : $CORES"
WORKERCOUNT={1}
Expand Down

0 comments on commit 645c8f5

Please sign in to comment.