I just wrote a python script which involves multi-threading, something like:
python myScript.py -cpu_n 5 -i input_file
To run the command for my hundreds of input files, I am generating a list (commands.list) of commands for each one:
python myScript.py -cpu_n 5 -i input_file1
python myScript.py -cpu_n 5 -i input_file2
python myScript.py -cpu_n 5 -i input_file3
...
And I'm trying to schedule them with the command 'parallel' and 10 CPUs of three different machines:
parallel -S 10/$server1 -S 10/$server2 -S 10/$server3 < commands.list
My question is: what is the max number of CPUs will be used on each server with the parallel command? Will it be 5*10=50 or just 10 cpus?