Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
/ lsgpu Public

lsgpu is a light-weight python tool to retrieve GPU information

Notifications You must be signed in to change notification settings

liuy/lsgpu

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
5 Commits
 
 
 
 

Repository files navigation

lsgpu is a light-weight python tool to retrieve GPU information

Install Dependency

pip install pycuda

Download the source

wget https://raw.githubusercontent.com/liuy/lsgpu/refs/heads/master/lsgpu.py

Run

python3 lsgpu.py

Output

Found 2 CUDA-capable device(s)

GPU 0: NVIDIA GeForce RTX 4060 Ti
  Architecture: Ada Lovelace
  Compute Capability: 8.9
  Number of SMs: 34
  CUDA Cores per SM: 128
  Total CUDA Cores: 4352
  Tensor Cores: 136 (4/SM, 4th gen)
  RT Cores: 34 (1/SM, 3rd gen)
  Max Shared Memory per Block: 48.0 KB
  L2 Cache Size: 32.00 MB
  Clock Rate: 2565.00 MHz
  Memory Type: GDDR6X
  Memory Size: 15.60 GB
  Memory Bus Width: 128-bit
  Effective Memory Clock Rate: 9001.00 MHz
  Memory Speed: 288.0 GB/s
  Compute Mode: Default

GPU 1: Tesla P40
  Architecture: Pascal
  Compute Capability: 6.1
  Number of SMs: 30
  CUDA Cores per SM: 128
  Total CUDA Cores: 3840
  Tensor Cores: Not available
  RT Cores: Not available
  Max Shared Memory per Block: 48.0 KB
  L2 Cache Size: 3.00 MB
  Clock Rate: 1531.00 MHz
  Memory Type: GDDR5X
  Memory Size: 23.87 GB
  Memory Bus Width: 384-bit
  Effective Memory Clock Rate: 3615.00 MHz
  Memory Speed: 347.0 GB/s
  Compute Mode: Default

About

lsgpu is a light-weight python tool to retrieve GPU information

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.