diff options
| author | Joshua Bakita <bakitajoshua@gmail.com> | 2023-03-16 02:18:35 -0400 |
|---|---|---|
| committer | Joshua Bakita <bakitajoshua@gmail.com> | 2023-03-16 02:18:35 -0400 |
| commit | 9ed721de0e9ce564b7c852e38359398b019a5c2f (patch) | |
| tree | 8dc52ba6d8521741d2c1aa4030196e54670c2efc /.gitignore | |
| parent | d827c6c152c8dd52463f82ef11ccdfc66083a9db (diff) | |
Introduce pysmctrl: A python interface to libsmctrl
Initially supports the GPU information functions via:
- pysmctrl.get_gpc_info(dev_id)
- pysmctrl.get_tpc_info(dev_id)
- pysmctrl.get_tpc_info_cuda(cuda_dev_id)
All functions are extensively documented. See pysmctrl/__init__.py
for details.
Device partitioning functions have yet to be mapped into Python, as
these will require more testing.
As part of this:
- libsmctrl_get_*_info() functions have been modified to consistently
return positive error codes.
- libsmctrl_get_tpc_info() now uses nvdebug-style device numbering and
uses libsmctrl_get_gpc_info() under the covers. This should be more
reliable.
- libsmctrl_get_tpc_info_cuda() has been introduced as an improved
version of the old libsmctrl_get_tpc_info() function. This continues
to use CUDA-style device numbering, but is now resiliant to CUDA
failures.
- Various minor style improvements in libsmctrl.c
Diffstat (limited to '.gitignore')
| -rw-r--r-- | .gitignore | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -2,3 +2,4 @@ libsmctrl.a | |||
| 2 | libsmctrl.o | 2 | libsmctrl.o |
| 3 | libsmctrl.so | 3 | libsmctrl.so |
| 4 | libsmctrl_test_gpc_info | 4 | libsmctrl_test_gpc_info |
| 5 | *.pyc | ||
