AMD GPU: Difference between revisions
Add missing word, oops. |
amdgpu.ids |
||
| Line 274: | Line 274: | ||
hardware.firmware = [ pkgs.linux-firmware ]; | hardware.firmware = [ pkgs.linux-firmware ]; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== PyTorch does not show the the GPU model and prints <code>(null): No such file or directory</code> === | |||
<syntaxhighlight lang="shell">$ python -c "import torch; print(torch.cuda.is_available(), torch.cuda.get_device_name(0))" | |||
(null): No such file or directory | |||
(null): No such file or directory | |||
True AMD Radeon Graphics</syntaxhighlight>It happens because torch cannot find <code>amdgpu.ids</code><syntaxhighlight lang="nix">systemd.tmpfiles.rules = [ | |||
"L+ /opt/amdgpu/share/libdrm/amdgpu.ids - - - - ${pkgs.libdrm}/share/libdrm/amdgpu.ids" | |||
];</syntaxhighlight><code>True AMD Radeon RX 9060 XT</code> | |||
== See Also == | == See Also == | ||