Skip to main content

gpucompare

Build status Python Version Dependencies Status

Code style: black Security: bandit Pre-commit Semantic Versions License Coverage Report

Compare GPUs

Installation

pip install -U gpucompare

or install with Poetry

poetry add gpucompare

Then you can run

gpucompare --help

or with Poetry:

poetry run gpucompare --help

Working

$ gpucompare --help

 Usage: gpucompare [OPTIONS]                                                                                
                                                                                                            
 Compare GPUs                                                                                               
                                                                                                            
╭─ Options ────────────────────────────────────────────────────────────────────────────────────────────────╮
│ *  --csv-data          TEXT  CSV file containing row-wise GPU data           [default: None] [required]  │
│                                                                                                          │
│                              Possible columns:                                                           │
│                              gpu_name (str): name of gpu  [required]                                     │
│                              architecture (str): GPU architecture                                        │
│                              cuda_cores (int): number of cuda cores                                      │
│                              fp32_perf (float): fp32 performance in TFLOPS                               │
│                              fp16_perf (float): fp16 performance in TFLOPS                               │
│                              int8_perf (float): int8 performance in TOPS                                 │
│                              mem (float): gpu memory in GiB                                              │
│                              mem_bandwidth (float): memory bandwidth in GB/s                             │
│    --version   -v            Prints the version of the gpucompare package.                               │
│    --help                    Show this message and exit.                                                 │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯
$ gpucompare --csv-data assets/gpu_data.csv
# gpu_data.csv
# gpu_name,architecture,int8_perf,mem_bandwidth
# A2,ampere,36,200
# A10,ampere,250,600
# A30,ampere,330,933
{'A10/A2': '3.0x', 'A30/A2': '4.67x'}

Contributing

Thanks for considering contributing to this project. Please follow Contributing guidelines.

🛡 License

License

This project is licensed under the terms of the MIT license. See LICENSE for more details.

📃 Citation

@misc{gpucompare,
  author = {kHarshit},
  title = {Compare GPUs},
  year = {2022},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/kHarshit/gpucompare}}
}

Credits 🚀 Your next Python package needs a bleeding-edge project structure.

This project was generated with python-package-template

Metadata

Release files for gpucompare 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gpucompare 1.0.0
File Size Uploaded
gpucompare-1.0.0.tar.gz 7.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gpucompare 1.0.0
File Interpreter ABI Platform
gpucompare-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.4 kB

Release files / gpucompare-1.0.0.tar.gz

Download URL gpucompare-1.0.0.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
09525a1f4e1f8500e2e3ea838271a4b72f8eef0d158c0742b8131d6832a92ad4
BLAKE2b-256 checksum
How to use checksums
bcb4b11b04b0ff27180a17a06a0cb78cbc7acaebb8bb776d36deebf41a729924
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.14 CPython/3.9.5 Linux/5.9.1-1.el7.elrepo.x86_64

Release files / gpucompare-1.0.0-py3-none-any.whl

Download URL gpucompare-1.0.0-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
633511bafd4115dc102112aa35d49a947070e0298171486133468cf8f5dac901
BLAKE2b-256 checksum
How to use checksums
9c78d42b139b639ac304da61ac7e223708401990aa4916978a6eb2ad94b63b6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.14 CPython/3.9.5 Linux/5.9.1-1.el7.elrepo.x86_64

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page