使用GPU加速的Linux Mint上的MATLAB R2021A设置

34 views (last 30 days)
Hi,
I just installed Linux Mint 20.1 on my computer (ThinkPad P51 with Nvidia Quadro 2200m).
I have issues regarding Matlab and also regarding the detecting the GPU.
After I boot my computer, I open the terminal and launch Matlab using the command
MATLAB$
然后Matlab打开,但这出现在终端中:
libGLerror: MESA-LOADER: failed to open iris (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGLerror: failed to load driver: iris
libGLerror: MESA-LOADER: failed to open iris (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGLerror: failed to load driver: iris
libGLerror: MESA-LOADER: failed to open swrast (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGLerror: failed to load driver: swrast
libGLerror: MESA-LOADER: failed to open iris (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGLerror: failed to load driver: iris
libGLerror: MESA-LOADER: failed to open iris (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGLerror: failed to load driver: iris
libGLerror: MESA-LOADER: failed to open swrast (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGLerror: failed to load driver: swrast
在MATLAB的命令行窗口中,显示此消息:
com.jogamp.opengl.GLException: X11GLXDrawableFactory - Could not初始化X11GraphicsDevice的共享资源[类型.x11,连接:0,unitid 0,handle 0x0,所有者false,resourcetoolkitlock [obj 0x12660792,isoneer false,<4555ae5c1,28f5776a>
atjogamp.opengl.x11.glx.x11glxdrawablefactory $ sharedResourceimplementation.createsharedResource(x11glxdrawablefactory.java:326)
atjogamp.opengl.sharedresourcerunner.run(shareShareResourcerunner.java:297)
atjava.lang.Thread.run(Thread.java:748)
Causedby: com.jogamp.opengl.GLException: AWT-EventQueue-0-SharedResourceRunner: Unable to create temp OpenGL context(1)
atjogamp.opengl.x11.glx.X11GLXContext.createImpl(X11GLXContext.java:368)
atjogamp.opengl.GLContextImpl.makeCurrentWithinLock(GLContextImpl.java:759)
atjogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:642)
atjogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:580)
atjogamp.opengl.x11.glx.x11glxdrawablefactory $ sharedResourceimplementation.createsharedResource(x11glxdrawablefactory.java:297)
...2更多
Warning: Unable tocreate com.mathworks.mde.liveeditor.LiveEditorClient,for详细信息请参阅
/home/adrien/matlabdesktopcreateerror.log
我发现我需要在终端中运行以下内容,以使此消息消失:
exportmesa_loader_driver_override = i965
Then I launch Matlab again and check if it is using the dedicated GPU of my computer:
>> gpudevice
错误using gpuDevice (line 26)
Unableto find a supported GPU device. For more information on GPU support, see释放的G万博1manbetxPU支持。
Is there anything I can do to solve this issue?
Also, if I reboot the computer, the initial error comes back and I need to
exportmesa_loader_driver_override = i965
again in order to make the first error message disappear.
Thank you for your help.
注:其他信息:
$gcc--version
gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
版权(c)2019免费Software Foundation,Inc。
This是免费软件;看the source for copying conditions.There is NO
保修单;不是even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$lspci | grep - i nvidia
01:00.0 3D控制器:Nvidia CorporationGM206GLM [Quadro M2200 Mobile](Rev A1)
01:00.1 Audiodevice: NVIDIA Corporation GM206 High Definition Audio Controller (rev a1)
$uname-m && cat /etc /*释放
x86_64
DISTRIB_ID=LinuxMint
Distrib_Release = 20.1
distrib_codeName = ulyssa
DISTRIB_DESCRIPTION="Linux Mint 20.1 Ulyssa"
名称=“ Linux Mint”
VERSION=“ 20.1(ulyssa)”
ID=linuxmint
ID_LIKE=ubuntu
pretty_name ="Linux Mint 20.1"
VERSION_ID=“20.1”
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.linuxmint.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
privacy_policy_url ="https://www.linuxmint.com/"
VERSION_CODENAME=ulyssa
UBUNTU_CODENAME=focal
cat: /etc/upstream-release: Is adirectory
$uname-r
5.4.0-72代

Answers (0)

s manbetx 845


发布

R2021A

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

开始狩猎!