[Share Experiences] davin达芬奇N卡算力卡(p40 40hx)fusion闪退问题解决
Tofloor
poster avatar
aaron_huang
deepin
2023-09-04 14:52
Author

为了玩stable diffusion,买了个N卡P40 24G,使用板载核显输出。达芬奇安装好后,fusion功能一点击就闪退。后来试了几个不同版本linux后,在pop!_os中无意中发现用“独立显卡运行”程序时,达芬奇fusion没有出现闪退(Ubuntu/Manjaro/Deepin/pop!os直接运行时都闪退了)。

我平时要用gimp以及gimp-python,它用的python2的,但pop!_os安装不了gimp-python。所以我想怎么能在deepinlinux实现以独立显卡运行,因为deepin可以安装gimp-python,而且很多常用软件deepin也很好安装比其他版本LINUX方便。

最终能通过slack里问claude,找到了解决方法。以下是最终找到解决方法:

好的,以运行Davinci Resolve为例,在它的快捷方式desktop文件中加入独立显卡环境变量,可以这么写:

[Desktop Entry]
Type=Application
Name=DaVinci Resolve
Icon=/usr/share/pixmaps/davinciresolve.png
Exec=env __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia /opt/resolve/bin/resolve %U

主要是在Exec行加入:

env __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia

这会让运行Davinci Resolve时默认使用独立显卡Nvidia GPU。__NV_PRIME_RENDER_OFFLOAD变量指定使用独立显卡渲染
__GLX_VENDOR_LIBRARY_NAME变量指定使用Nvidia的OpenGL库这样就可以使Davinci Resolve默认使用独立显卡运行了。你可以修改对应程序的desktop文件,加上类似环境变量设置,就可以实现独立显卡启动了。

我另外一台机,用的是华硕cmp 40hx矿卡,也是这个方法解决达芬奇中Fusion闪退问题的。

Reply Favorite View the author
All Replies
阿尼樱奈奈
Moderator
2023-09-04 15:23
#1

like

Reply View the author
dgmenghuan
deepin
2023-09-04 16:35
#2

tail

Reply View the author
神末shenmo
deepin
Spark-App
2023-09-04 17:08
#3

https://bbs.deepin.org/post/256199

用这个比较方便,右键就可以

Reply View the author
huaqi
deepin
2023-09-04 18:24
#4

fusion闪退是差一个依赖吧

Reply View the author
aaron_huang
deepin
2023-09-04 23:00
#5
神末shenmo

https://bbs.deepin.org/post/256199

用这个比较方便,右键就可以

还是你这个好用,Blender渲染快很多。

Reply View the author