Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cuda_cores_per_mp KeyError: 7.5 #2

Open
JingchaoZhang opened this issue Feb 25, 2021 · 3 comments
Open

cuda_cores_per_mp KeyError: 7.5 #2

JingchaoZhang opened this issue Feb 25, 2021 · 3 comments

Comments

@JingchaoZhang
Copy link

I got the following error when running the python deviceQuery.py command.

CUDA device query (PyCUDA version)

Detected 1 CUDA Capable device(s)

Device 0: Quadro T1000 with Max-Q Design
         Compute Capability: 7.5
         Total Memory: 4096 megabytes
Traceback (most recent call last):
  File "deviceQuery.py", line 35, in <module>
    cuda_cores_per_mp = { 5.0 : 128, 5.1 : 128, 5.2 : 128, 6.0 : 64, 6.1 : 128, 6.2 : 128}[compute_capability]
KeyError: 7.5

Can you update the code to include key 7.5 in the dict?

@Harsh188
Copy link

Harsh188 commented Jun 24, 2021

I have a similar issue as well, however, my KeyError value is 8.6.

@YuhsiHu
Copy link

YuhsiHu commented Apr 20, 2023

You can add the version and cores in to the dict cuda_cores_per_mp. For example, add:
7.5 : 128

@foongminwong
Copy link

Adding 8.6 : 128 to cuda_cores_per_mp works, thanks!

FYI, if using Python3, replace gpu_device.get_attributes().iteritems() to gpu_device.get_attributes().items()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants