Run OpenGL on AWS GPU instances with CentOS

后端 未结 2 1387
死守一世寂寞
死守一世寂寞 2021-01-30 07:11

I need to execute some off-screen rendering program on AWS EC2 GPU instance with CentOS. However, while I found that Ubuntu is very easy to setup, I cannot let CentOS work prope

2条回答
  •  甜味超标
    2021-01-30 07:52

    Just an additional find:

    I did this to get the X Server running:

    sudo /usr/bin/X :0 &
    

    However, my OpenGL application was still not using the GPU for image rendering, and was therefore being REALLY slow.

    This is what saved me -- setting a DISPLAY environment variable to the same display (ID: 0) that the X Server is using:

    export DISPLAY=:0.0
    

提交回复
热议问题