diff options
| author | Joshua Bakita <jbakita@cs.unc.edu> | 2025-06-25 20:01:19 -0400 |
|---|---|---|
| committer | Joshua Bakita <jbakita@cs.unc.edu> | 2025-06-25 20:43:38 -0400 |
| commit | 9b4b4f71fd843c3ec97ca6f55935675e62ca31f5 (patch) | |
| tree | e38f415c07415078e37ad8e1a0e08b6ff513114b /pysmctrl | |
| parent | e0cb12762d048e388a81cffae3e96bfe2bd672cc (diff) | |
Speed up nvtaskset by skipping CUDA context creation if possible
The GPU needs to be on before the GPC-to-TPC mapping registers can
be read. The easiest way to power on the GPU is to create a CUDA
context, but this is fairly expensive.
In nvtaskset, some GPU-using task will likely already be running,
and so we can skip CUDA context creation in the common case.
Bug fixes:
- Delete the temporary CUDA context created by nvtaskset after
it is done with it. Fixes bug where nvtaskset would leak this
context into any program it launches.
Additional changes:
- Style fixes in libsmctrl.c
- Remove superfluous newlines from error() calls in nvtaskset.c
Diffstat (limited to 'pysmctrl')
0 files changed, 0 insertions, 0 deletions
