Skip to content

Headless Rendering on GPU via SDL+CUDA without X-server #1050

@rmst

Description

@rmst

Hi,

Applications based on SDL (e.g. all Unreal engine apps) seem to render on Nvidia GPUs without X-server now (carla-simulator/carla#225). Unity3D seems to support SDL as well according to changelogs (e.g. https://unity3d.com/de/unity/whats-new/unity-2017.3.0) but I couldn't make it work when applying the simple trick from the link above that works for Unreal-based applications. Any ideas how to make that work?

Best,

Simon

Edit: The way to get SDL apps to render without X and through CUDA instead is to:

export SDL_VIDEODRIVER=offscreen
export SDL_HINT_CUDA_DEVICE=0

Metadata

Metadata

Assignees

Labels

requestIssue contains a feature request.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions