B
B
borisovdenis2017-05-09 16:29:02
GPGPU
borisovdenis, 2017-05-09 16:29:02

How to fix version of your CUDA header does not match the version of your CUDA driver error?

Follow this tutorial to install CUDA and PyCUDA on windows 8.1. The card is on my NVIDIA GeForce GT 740M laptop. I'm trying to check if everything works by running the simplest example:

import pycuda.driver as drv

drv.init()
print('%d divice(s) found' % (drv.Device.count()))

for i in range(drv.Device.count()):
    dev = drv.Device(i)

    print('Device %s: %s' % (i, dev.name()))
    print('Compute  Capability: %d.%d' % dev.compute_capability())
    print('Total memory: %s' % dev.total_memory())

But this error is thrown:
ModuleNotFoundError: No module named 'pycuda._driver
Failed to import the CUDA driver interface, with an error message indicating that the version of your CUDA header does not match the version of your CUDA driver.
Help me please!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Imaginarium, 2017-05-09
@Imaginarium

The same thing, read carefully - you need to prescribe either in the paths:
https://devtalk.nvidia.com/default/topic/520265/im...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question