nvtx-0.2.8


توضیحات

Python NVTX - Python code annotation library
ویژگی مقدار
سیستم عامل -
نام فایل nvtx-0.2.8
نام nvtx
نسخه کتابخانه 0.2.8
نگهدارنده []
ایمیل نگهدارنده []
نویسنده NVIDIA Corporation
ایمیل نویسنده -
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/nvtx/
مجوز -
# nvtx Python package ## Installation Install using conda: ``` conda install -c conda-forge nvtx ``` ...or using pip: ``` python -m pip install nvtx ``` ## Quick start 1. Annotate the parts of your Python code you wish to profile/analyze: ```python # demo.py import time import nvtx @nvtx.annotate(color="blue") def my_function(): for i in range(5): with nvtx.annotate("my_loop", color="red"): time.sleep(i) my_function() ``` 2. Use [NVIDIA Nsight Systems](https://developer.nvidia.com/nsight-systems) to collect profile data: ``` nsys profile -t nvtx python demo.py ``` 3. Visualize the results using the Nsight systems GUI: ![demo](https://raw.githubusercontent.com/NVIDIA/NVTX/release-v3/docs/images/example_range.png) ## Documentation See [here](https://nvidia.github.io/NVTX/python/) for detailed docs. ## Release Notes ### 0.2.15 - Extend Domain API to accept keyword arguments for event attributes. - Implement testing improvements. ### 0.2.14 - Add support for NumPy arrays as payloads. - Set up support for free-threaded Python. - Apply `NVTX_DISABLE` environment variable to `Profile` class. ### 0.2.13 - Fix tracing with tools that do not implement `nvtxDomainIsEnabled`. - Fix decorator ranges not ending when an exception is thrown. - Fix automatic function name annotation for decorator ranges. ### 0.2.12 - Expose API via `domain` object for better performance. - No-OP when domain is disabled. - Improved documentation.


نیازمندی

مقدار نام
xtr pytest;
xtr setuptools;
xtr sphinx;
xtr nvidia_sphinx_theme;


نحوه نصب


نصب پکیج whl nvtx-0.2.8:

    pip install nvtx-0.2.8.whl


نصب پکیج tar.gz nvtx-0.2.8:

    pip install nvtx-0.2.8.tar.gz