Skip to main content

A package to occupy GPU resources by performing matrix multiplications.

Project description

Train Dit

train_dit is a Python package designed to occupy GPU resources by performing matrix multiplication on specified GPUs to keep them active.

Usage

You can specify the number of GPUs, the size of the matrix, and the interval time between each operation through command line arguments. For example:

python train_dit.py --size 38000 --gpus 4,5,6,7 --interval 0.01

In this example, the script will perform matrix multiplication on GPUs 4, 5, 6, and 7, with a matrix size of 38000x38000, and an interval of 0.01 seconds between each operation.

Parameters

  • --gpus: IDs of GPUs used for matrix multiplication, separated by commas. Default value is '0,1,2,3,4,5,6,7'.
  • --size: Size of the matrix. This parameter is required.
  • --interval: Interval time between each operation, in seconds. This parameter is required.

Note

Make sure you have PyTorch installed on your machine and CUDA support. Additionally, the GPU IDs you specify must be valid; otherwise, the script will not run properly.

Author

Yiming Shi

Contact: yimingshi666@gmail.com

GitHub: https://github.com/SKDDJ/train_dit

Project details


Download files

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

Source Distribution

train_dit-0.1.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

train_dit-0.1.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file train_dit-0.1.0.tar.gz.

File metadata

  • Download URL: train_dit-0.1.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.6

File hashes

Hashes for train_dit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e37528716d64b8c9e0b056108bf2d51cca3e4896618cb0248c801daa36352556
MD5 5e367709ac963bea3201b90d7b4cefb2
BLAKE2b-256 88691b5b064f5d765b485d55db41bd62e509a7716b3a7d05e67425413e5156e9

See more details on using hashes here.

File details

Details for the file train_dit-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: train_dit-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.6

File hashes

Hashes for train_dit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 77054db1301d1537e6da039eababb4a5cbf98d6c480e57eecaf6ad8ca3421a5b
MD5 59300988b9de6f5ce375c1b42c69142a
BLAKE2b-256 d26b770615c629dad1ed644abf5e5a749943782d58e4b0c7fde34f7b57e5e506

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