Development Linux

Allow bash script to run commands on multiple processors

I have a script which launches deepTools’ computeMatrix for a whole bunch of different files with various option. The user manual for computeMatrix states:

--numberOfProcessors INT, -p INT

Number of processors to use. Type “max/2” to use half the maximum number of processors or “max” to use all available processors. (default: 1)

I’d like to use up to 8 processors for each one, one after the other, and there are other people using these processors so I can’t take them all. However, when I check on htop, it looks like the script is only using one processor.

Is there any way to allow the “superscript” to use multiple processors for its “subscripts”?

Leave a Reply

Your email address will not be published. Required fields are marked *