JingShing / How-to-use-tesla-p40

A manual for helping using tesla p40 gpu
BSD 3-Clause "New" or "Revised" License
101 stars 13 forks source link

Cannot make it work with GT1010 and Tesla P40 #1

Closed owendswang closed 9 months ago

owendswang commented 9 months ago

I guess they can't be driven with one driver. I can't find any driver make them both work. When installed different version of drivers and changed the retristry settings, the P40 card got a question mark in the device manager. But without modifying the retristry settings (mainly the 'AdapterType' would cause a question mark in the device manager), I can't choose the P40 to render the application. By the way, 537.70 data center driver for the P40 and 546.33 desktop driver for the GT1010. 图片 图片 图片 图片

owendswang commented 9 months ago

Finally got it working now. Partially actually. Check replies below for more. From the research and the goal I've got, you have to use ONE driver to get both cards driven. Otherwise you can't make both card to WDDM mode. In the old days, 4XX version drivers are the same for both Tesla and Geforce, but 5XX version drivers differ now. But!!! the 'CUDA toolkit' provides the driver which could get both of them driver! https://developer.nvidia.com/cuda-downloads And it's still necessary to tweak the registry settings. (Hints: 'EnableMsHybrid' value controls the 'Power saving' and 'High performance' settings, 1 for the performance GPU and 2 for the power save GPU. 'AdapterType' controls the 'WDDM' and 'TCC' mode settings which could be controlled by command 'nvidia-smi -dm 0', but may not work in official way. 'GridLicensedFeatures' controls Grid feature. GPU would appear in Task Manager when setting it to 7.)

Reminder: uninstall all other drivers before installing cuda toolkit driver. (DDU is an easier way.)

图片 图片 图片 图片

owendswang commented 9 months ago

GG guys... Apex got me error... Q 2K5BAAM{{R2Q)_HOUAA4H

owendswang commented 9 months ago

Finally got it working... Partially actually. Check replies for more. Currently, the latest version of desktop driver for geforce 10 series is 546.33. But for GT1010, there is not 'Studio Driver'. As for GTX1080Ti, there is 'Studio Driver'. So I installed 'Studio Driver' v546.33 and it recognized Tesla P40, but cannot recognize GT1010. Then I installed 'Game Ready Driver' v546.33 and it recognized GT1010. Both of them are driven normally now. Then I tweaked the registry settings of P40 like you provided and disabled&enabled P40 in the device manager. Then the games run normally! (Actually I got blue-screen at first try. I'm not sure if it would happen after reboot. I'll check it later. Yes. It would cause bluescreen on every boot. Check next reply for more.) 1307040903 1685142608

owendswang commented 9 months ago

Now, it cause me on every boot after registry settings changed. After checking every registry I changed, I found it is 'AdapterType' which is causing blue-screen. So the way to avoid blue-screen on next boot is that you have to change 'AdapterType' back to 2 before you shutdown. And to play games, you could just change 'AdapterType' to 1 and disable&enable P40 in device manager. 1287766dcb16f4dc4280f764b2307ee But I'm still willing to find a better way...

owendswang commented 9 months ago

So currently, I set 2 task schedules to change the P40 driven mode to avoid blue-screen on boot.

  1. Change 'AdapterType' to 1 and disable&enable P40 after boot.
    reg add HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0002 /f /t REG_DWORD /v AdapterType /d 1
    pnputil /restart-device "PCI\VEN_10DE&DEV_1B38&SUBSYS_11D910DE&REV_A1\4&2283f625&0&0019"
  2. Change 'AdapterType' to 2 before shutdown.
    reg add HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0002 /f /t REG_DWORD /v AdapterType /d 2

    Just save above codes to batch scripts seperately and build task schedules with them.

I guest this is currently the way I would keep P40 running on my PC.

owendswang commented 6 months ago

Currently, v551.61 driver works, but v551.86 does not wok. The 'Grid' feature wouldn't work.