lmstudio-ai / .github

34 stars 3 forks source link

[Linux - AppImage] Wrong GPU detected, program won't start #41

Open Kyr4l opened 2 months ago

Kyr4l commented 2 months ago

i run a dual GPU setup (RX6700XT as the master card, NVIDIA GTX 1660S as the slave card) the NVIDIA card has a dedicated vfio-pci driver loaded on boot which makes it not usable by any programn the GPU is dedicated to VMs. for some reason when i try to launch LM-Studio, it incorrectly picks the NVIDIA card and immediately crashes, even tho the master card is AMD. i have of course no NVIDIA driver installed on my system due to this specific setup.

14:25:07.594 › GPU info: '0c:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M/6850M XT] (rev c5)
0d:00.0 VGA compatible controller: NVIDIA Corporation TU116 [GeForce GTX 1660 SUPER] (rev a1)'
14:25:07.604 › Got GPU Type: nvidia
14:25:07.604 › LM Studio: gpu type = NVIDIA
A JavaScript error occurred in the main process
Uncaught Exception:
Error: libcuda.so.1: cannot open shared object file: No such file or directory
    at process.func [as dlopen] (node:electron/js2c/asar_bundle:2:1822)
    at Module._extensions..node (node:internal/modules/cjs/loader:1326:18)
    at Object.func [as .node] (node:electron/js2c/asar_bundle:2:1822)
    at Module.load (node:internal/modules/cjs/loader:1096:32)
    at Module._load (node:internal/modules/cjs/loader:937:12)
    at f._load (node:electron/js2c/asar_bundle:2:13330)
    at Module.require (node:internal/modules/cjs/loader:1120:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at c (/tmp/.mount_LM_Stu1BzxrE/resources/app/.webpack/main/index.js:2:2173)
    at 21587 (/tmp/.mount_LM_Stu1BzxrE/resources/app/.webpack/main/index.js:8:566886)
hobein commented 1 month ago

@Kyr4l I do have exactly the same problem here too. What I did to allow the application to start is to create a script named lspci which calls the real lspci and remove any occurence of nvidia.

On my side even if the application is able to start I am still having problem to load model. See #40