Skip to main content

A Python package running full of GPUs for heating

Project description

gpuheater

English | 中文

In the harsh winter, with lackluster air conditioning and heating, it's time to use GPUs for heating.

GPU, start!

Installation

pip install git+https://github.com/sword4869/gpuheater.git

Running

  • Specify which GPUs

    # use all gpus
    # gpuheater --device_index 0 1
    $ gpuheater
    device_index [0, 1]
    Fan speed   |  Temperature  |  GPU utilization   |        Memory Free/Memory Total        
        22% 0%     |   60C 59C     |     100% 100%      |   1855MiB/11264MiB 1423MiB/11264MiB    
    
    # use the second gpu
    $ gpuheater --device_index 1
    device_index [1]
    Fan speed   |  Temperature  |  GPU utilization   |        Memory Free/Memory Total        
        0%       |     57C       |       100%         |           1423MiB/11264MiB
    
  • Decide to use a certain amount of free memory size (default of 10%)

    The size of free memory does not refer to the total memory size, but to the available free memory. So, it will not interfere with already running applications.

    # Only 1%
    $ gpuheater --memory_free_percent 1 
    device_index [0, 1]
    Fan speed   |  Temperature  |  GPU utilization   |        Memory Free/Memory Total        
    25% 20%     |   57C 50C     |      37% 34%       |  920.1MiB/11264MiB 442.9MiB/11264MiB    
    
  • type in q (and enter) or ctrl-c to exit

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gpuheater-1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gpuheater-1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file gpuheater-1.0.tar.gz.

File metadata

  • Download URL: gpuheater-1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for gpuheater-1.0.tar.gz
Algorithm Hash digest
SHA256 8a9f67e551408318a5831c7e8707fd7e5624b26371c2d7076e67a92b4b568436
MD5 16c917f66f202a49cb74da0bc7fb7ab9
BLAKE2b-256 7880a316d647b42a313c88c704ceac105c8d266f02bdef31700e7c27f89fd9a6

See more details on using hashes here.

File details

Details for the file gpuheater-1.0-py3-none-any.whl.

File metadata

  • Download URL: gpuheater-1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for gpuheater-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 971f82dff0574d1a05bc2da3e8d716a565c2b4463442aa64a4505e36ae22b5f3
MD5 96a6192df06a2be703b21c8588d83c27
BLAKE2b-256 b477191974787270c6558a82f09efd0ad9984606bae507a62d148870574a599d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page