{ "info": { "author": "mark9064", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Natural Language :: English", "Operating System :: POSIX :: Linux", "Programming Language :: Cython", "Programming Language :: Python :: 3" ], "description": "# pyamdgpuinfo\n\nAMD GPU stats\n\n## Install\n\n`pip3 install pyamdgpuinfo`\n\nOnly linux is supported, using the amdgpu driver.\n\n~~Precompiled wheels for python 3.5, 3.6 and 3.7 are the default method of install. This means that you don't need cython or any other dependencies to install it normally.~~ \n\nCurrently, prebuilt wheels are unavailable due to Centos 6 shipping a libdrm version which is too old. However, the manylinux2014 PEP (599) allows Centos 7, which ships a new enough version. This means that prebuilt wheels should be available soon.\n\nThe library is written using cython, meaning that cython and and a C compiler are needed to build and install from source. Additionally, libdrm-dev is needed. \n\n## Usage\n\nExample:\n```python\nimport pyamdgpuinfo\n\ngpus = pyamdgpuinfo.setup_devices()\n# query first device\nfirst_gpu = list(gpus.keys())[0]\nvram_usage = pyamdpuinfo.query_vram_usage(first_gpu)\nprint(vram_usage)\n```\n\nAll documentation is in the docstrings of each function/class.\n\nAvailable functions are (see docstrings for more info):\n* setup_devices - Sets up devices so they can be used.\n* start_utilisation_polling - Starts polling GPU registers for utilisation statistics.\n* stop_utilisation_polling - Stops the utilisation polling thread.\n* cleanup - Cleans up allocated memory (only recommended if de-initialising the module before the main program is ended).\n\nQuery functions (again see docstrings):\n* query_max_clocks - Queries max GPU clocks\n* query_sclk - Queries shader (core) clock\n* query_mclk - Queries memory clock\n* query_vram_usage - Queries VRAM usage\n* query_gtt_usage - Queries GTT usage\n* query_temp - Queries temperature\n* query_load - Queries GPU load\n* query_power - Queries power consumption\n* query_utilisation - Queries utilisation of different GPU parts (requires utilisation polling to be running)\n\nVRAM and GTT sizes are returned by setup_devices (if they are available).\n\n## Mentions\n\nParts of this package were inspired by [radeontop](https://github.com/clbr/radeontop).\n\n## License\n\nGPLV3", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mark9064/pyamdgpuinfo", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "pyamdgpuinfo", "package_url": "https://pypi.org/project/pyamdgpuinfo/", "platform": "", "project_url": "https://pypi.org/project/pyamdgpuinfo/", "project_urls": { "Homepage": "https://github.com/mark9064/pyamdgpuinfo" }, "release_url": "https://pypi.org/project/pyamdgpuinfo/1.0.2/", "requires_dist": null, "requires_python": "", "summary": "AMD GPU stats", "version": "1.0.2" }, "last_serial": 5757337, "releases": { "1.0.2": [ { "comment_text": "", "digests": { "md5": "1087c9b3f138b7a4734402655d775dc8", "sha256": "6861d4c77547b2b0ea6ddb060db3bbe0fe066da95240fdace2fcc979030eea2e" }, "downloads": -1, "filename": "pyamdgpuinfo-1.0.2.tar.gz", "has_sig": false, "md5_digest": "1087c9b3f138b7a4734402655d775dc8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7920, "upload_time": "2019-08-29T22:39:23", "url": "https://files.pythonhosted.org/packages/8b/10/05e06dc77a982ca0e83003bbf218553b916bae1b65c8225547f3f79c6020/pyamdgpuinfo-1.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1087c9b3f138b7a4734402655d775dc8", "sha256": "6861d4c77547b2b0ea6ddb060db3bbe0fe066da95240fdace2fcc979030eea2e" }, "downloads": -1, "filename": "pyamdgpuinfo-1.0.2.tar.gz", "has_sig": false, "md5_digest": "1087c9b3f138b7a4734402655d775dc8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7920, "upload_time": "2019-08-29T22:39:23", "url": "https://files.pythonhosted.org/packages/8b/10/05e06dc77a982ca0e83003bbf218553b916bae1b65c8225547f3f79c6020/pyamdgpuinfo-1.0.2.tar.gz" } ] }