Hyper-Q / MPS: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 63: Line 63:


<!--T:13-->
<!--T:13-->
In the above example, we share a single V100 GPU between 8 instances of <code>my_code</code> (which takes a single argument-- the loop index $i). We request 8 CPU cores (#SBATCH -c 8) so there is one CPU core per application instance. The two important elements are <code>&</code> on the code execution line, which sends the code processes to the background, and the <code>wait</code> command at the end of the script, which ensures that the job runs until all background processes end.
In the above example, we share a single V100 GPU between 8 instances of <code>my_code</code> (which takes a single argument-- the loop index $i). We request 8 CPU cores (#SBATCH -c 8) so there is one CPU core per application instance. The two important elements are
* <code>&</code> on the code execution line, which sends the code processes to the background, and
* the <code>wait</code> command at the end of the script, which ensures that the job runs until all background processes end.


<!--T:14-->
<!--T:14-->
rsnt_translations
56,420

edits

Navigation menu