Skip to content

Commit 117bdcb

Browse files
authored
Merge pull request #42 from MoseleyBioinformaticsLab/release
Release 3.0.0
2 parents 6e0f450 + 4ec54d2 commit 117bdcb

File tree

42 files changed

+2104
-1349
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+2104
-1349
lines changed

README.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@ gpu_tracker
33
###########
44
Description
55
-----------
6-
The ``gpu_tracker`` package provides a ``Tracker`` class and a commandline-interface that tracks (profiles) the usage of compute time, CPU utilization, maximum RAM, and maximum GPU RAM.
6+
The ``gpu_tracker`` package provides a ``Tracker`` class and a commandline-interface that tracks (profiles) the usage of compute time, CPU utilization, maximum RAM, GPU utilization, and maximum GPU RAM.
77
The compute time is a measurement of the real time taken by the task as opposed to the CPU-utilization time.
88
The GPU tracking is for Nvidia GPUs and uses the ``nvidia-smi`` command. If the Nvidia drivers have not been installed, then the max GPU RAM is not tracked and measurements are reported as 0.
99
Computational resources are tracked throughout the duration of a context manager or the duration of explicit calls to the ``start()`` and ``stop()`` methods of the ``Tracker`` class.
1010
The ``gpu-tracker`` command-line interface alternatively tracks the computational-resource-usage of an arbitrary shell command.
1111

1212
**NOTE: The tracking occurs in a separate process. To maximize the accuracy of the reported resource usage, you may want to have a core available solely for the tracking process e.g. if your job uses 3 workers, you may want to allocate 4 cores.**
1313

14+
**NOTE: Since the tracking process is created using the Python multiprocessing library, if done so using the "spawn" start method (default on MacOS and Windows) or the "forkserver" method, you may get a runtime error after starting the tracking. To prevent this, you'll need to start the tracker after checking** ``if __name__ == '__main__'``. **See "Safe importing of main module" under** `The spawn and forkserver start methods <https://docs.python.org/3/library/multiprocessing.html#the-spawn-and-forkserver-start-methods>`__ **for more information.**
15+
1416
Documentation
1517
-------------
1618
The complete documentation for the ``gpu_tracker`` package, including tutorials, can be found `here <https://moseleybioinformaticslab.github.io/gpu_tracker/>`__.

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
1515

1616
project = 'gpu_tracker'
17-
copyright = '2024, Erik Huckvale, Hunter Moseley'
18-
author = 'Erik Huckvale, Hunter Moseley'
17+
copyright = '2024, Erik Huckvale, Hunter N. B. Moseley'
18+
author = 'Erik Huckvale, Hunter N. B. Moseley'
1919
version = __version__
2020
release = __version__
2121

docs/notebook/tutorial.ipynb

Lines changed: 409 additions & 318 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)