Git Product home page Git Product logo

mygpu's Introduction

mygpu

Obtain CUDA compute capability information for the locally installed Nvidia GPU, from browser. The compute capability is generally required as input for projects that use CUDA builds.

Table of contents

  1. Requirements
  2. Getting
  3. Using
  4. Bugs
  5. References
  6. Disclaimer

Requirements

  • WebGL supported browser

On Edge canary, sometimes, the Vulkan backend is used making the Nvidia driver invisible. Using the option "--use-angle=d3d11on12" is a remedy (2023).

  • Nvidia GPU and recent drivers

Note

  • On Hybrid systems/ notebooks with multiple GPUs, force application to use Nvidia GPU - Refer https://alteredqualia.com/texts/optimus/

  • On Tegra systems, Chrome seems to be using SwiftShader by default, so perform the manual step of identification (#manual)

How to get CUDA compute capability

Browser

Browse to one of the below links -

https://gpupowered.org/mygpu/

Or

https://prabindh.github.io/mygpu/

The CUDA compute information will be displayed in the same page

Screenshot

Manually

nvidia-smi --query-gpu=compute_cap --format=csv

This will output in the format compute_cap 8.6

Or, Obtain the name of the GPU by running below command on command line

nvidia-smi --query-gpu=name --format=csv

Then use this json file to find the compute capability

https://github.com/prabindh/mygpu/blob/main/mygpu.json

Using this information

In Makefiles

Enter only the compute_xx string obtained above, in the arch= and code= fields below

ARCH= -gencode arch=compute_xx,code=compute_xx
$(OBJDIR)%.o: %.cu $(DEPS)
    $(NVCC) $(ARCH) $(COMMON) --compiler-options "$(CFLAGS)" -c $< -o $@

In Visual Studio (For CUDA Runtime Project Type only)

Enter the complete string obtained above, in this field

Configuration Properties --> CUDA C/C++ --> Device --> Code Generation --> compute_xx,sm_xx

Bug/Unlisted GPU

References

Disclaimer

Author or contributors not responsible for any direct, indirect, or consequential loss or damage resulting from any usage of this data.

This is not an official Nvidia product.

Sourced from public material at https://en.wikipedia.org/wiki/CUDA and https://developer.nvidia.com/cuda-gpus#compute.

Only covers GPUs with CUDA compute capability > 5.0. For ex, these are not listed (GeForce GTX 680,GTX 590,GTX 580,GTX 570,GTX 560 Ti,GTX 560,GT 440,GTX 480,GTX 470,GTX 465,GTX 295,GTX 280/GTX 285,GTX 260,210,GT 240,GT 220,GT 130,GT 120,GTS 250,9800 GX2,9800 GTX,9800 GT,9600 GSO,9600 GT,8800 GTX/Ultra,8800 GT,8800 GTS,8600 GT/GTS,8400 GS/GT)

mygpu's People

Contributors

envidian avatar prabindh avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

jiaolovekt

mygpu's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.