2024-03-25
Use Tesla Gpu In Wddm Mode On Windows

On Linux there is no difference between WDDM and TCC.

On Windows, all Tesla GPUs operate at TCC mode, which cannot utilize functions like DirectML, Vulkan etc.

To enable WDDM mode, you need to change the registry.

The path: Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Class\{4d36e968-e325-11ce-bfc1-08002be10318}

Find the Tesla card within 000x, change AdapterType to 1, FeatureScore to 0xd1, create DWORD GridLicensedFeatures to 7, create DWORD EnableMsHybrid to 1.

Find the iGPU within 000x, create DWORD EnableMsHybrid to 2.

Restart the computer. When you see the Tesla GPU popping up in Task manager you are all set.

Run:

1
2
nvidia-smi -g 0 -dm 0

Make sure to select the right GPU when using Vulkan.

Read More

2023-10-10
Amdgpu, Rocm And Pytorch

https://scale-lang.com/


rocm is trash to apu. use vulkan or opengl (alternative backends)


find latest build in pytorch nightly repo

use sudo before invoking amdgpu related commands, otherwise unavailable


use directml (pytorch, tensorflow) instead. need windows.

you need to set the shared graphical memory to a larger value.

rocm does not work for integrated graphic cards (even if you build it and configured the card name), and supported amd cards are limited.

Read More