Skip to content
Snippets Groups Projects
Commit 3b726bd5 authored by Thomas Jürges's avatar Thomas Jürges
Browse files

SW-382: Replace Python2 integer division (/) with Python3 one (//)

parent 230019d5
No related branches found
No related tags found
No related merge requests found
...@@ -93,7 +93,7 @@ DEFAULT_NUMBER_OF_CORES_PER_TASK = 2 ...@@ -93,7 +93,7 @@ DEFAULT_NUMBER_OF_CORES_PER_TASK = 2
NUMBER_OF_NODES = 40 NUMBER_OF_NODES = 40
NUMBER_OF_CORES_PER_NODE = 24 NUMBER_OF_CORES_PER_NODE = 24
# We /4 because we can then run 4 pipelines, and -2 to reserve cores for TBBwriter # We /4 because we can then run 4 pipelines, and -2 to reserve cores for TBBwriter
DEFAULT_NUMBER_OF_TASKS = (NUMBER_OF_NODES / 4) * (NUMBER_OF_CORES_PER_NODE - 2) / DEFAULT_NUMBER_OF_CORES_PER_TASK DEFAULT_NUMBER_OF_TASKS = (NUMBER_OF_NODES // 4) * (NUMBER_OF_CORES_PER_NODE - 2) // DEFAULT_NUMBER_OF_CORES_PER_TASK
def runCommand(cmdline, input=None): def runCommand(cmdline, input=None):
logger.info("runCommand starting: %s", cmdline) logger.info("runCommand starting: %s", cmdline)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment