DEV Community

Running GPU accelerated WebGL Application on headless chrome on EC2

Ingun 전인건 on December 18, 2021

I make a performance-critical WebGL library that loads and simulates some heavy 3D models. Detecting any compromise on performances on every code c...
Collapse
 
mirzabilal profile image
Mirza Bilal

This was a great help at the time, but things broke over time because of Chrome Updates, EGL, and loads of other factors.
I have recently worked with the Remotion.dev community to solve this issue, here is the link for that
dev.to/mirzabilal/how-to-enable-ha...

Collapse
 
danilogiulio profile image
DaniloGiulio

Hi Mirza, I have tried also your article but it does not work anymore. Any suggestion?

Collapse
 
atulevertz profile image
atul • Edited

Hi Ingun, I am facing a major issue while following the steps provided by you after running sudo chromium-browser --no-sandbox --headless --use-gl=egl --print-to-pdf=out.pdf 'chrome://gpu' , I am getting the below error:

Could you please help me to rectify this issue asap.
Image description

Image description

Collapse
 
atulevertz profile image
atul

any updates and suggestions .

Collapse
 
ingun37 profile image
Ingun 전인건

Sorry i wasnt checking blog for a while ill look into it and get back!

Collapse
 
ingun37 profile image
Ingun 전인건

I'm sorry but GPU drivers and Virtual Machines are updating so fast and I don't think I can easily give you an actual help on this. Good luck 😭

Thread Thread
 
atulevertz profile image
atul

Do you have any idea on how to configure the same in **Docker **using a docker image with GPU accelerated browsers?

Collapse
 
ingun37 profile image
Ingun 전인건

But I recently moved on to Azure in which I found much easier to set up GPU accelerated browsers. If it's an option for you I recommend trying Azure.

Thread Thread
 
atulevertz profile image
atul

Could you please help me with the **Image **in azure which can help me quickly spin up Azure Virtual machine with that Image to test GPU drivers.

Thread Thread
 
ingun37 profile image
Ingun 전인건

Just any image and you can add Nvidia GPU Extension learn.microsoft.com/en-us/azure/vi...

Thread Thread
 
ingun37 profile image
Ingun 전인건

The cheapest Nvidia option I found was

  • Size Standard_NC4as_T4_v3
  • Visual Studio 2022 Dev Box Image. (Or any other Windows Image)