Does MATLAB require a GPU to run on Linux?

MathWorks Solution

What is changing?

Starting in MATLAB R2027a, graphics rendering on Linux requires a usable GPU by default.
MATLAB Graphics uses WebGL. When GPU acceleration is unavailable, MATLAB has relied on SwiftShader, a software renderer provided by Chromium. Google has disabled SwiftShader by default because of security concerns.

Who is affected?

Linux users without a usable GPU will no longer have working graphics by default. This can affect:
  • Virtual machines
  • Containers
  • Headless environments
  • CI/CD workflows that create or use graphics
An installed GPU must also be accessible to MATLAB and usable for graphics rendering.

What can I do to use MATLAB?

  • Use an environment with a usable GPU and compatible graphics drivers. Please find the system requirements here:
MATLAB and Simulink Requirements
  • For virtual machines and containers, check whether GPU access can be enabled and is supported in that environment.
  • If you encounter issues with the graphics, follow the MATLAB graphics troubleshooting documentation for detailed guidance and supported mitigation options:
Troubleshoot Blank Figures and Missing Graphics

Tags

No tags entered yet.

Did this resolve your question?

No