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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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