Renderização Headless OpenGL no Google Compute

1

Eu criei uma instância de GPU no mecanismo do Google Compute com o NVIDIA Tesla K80 anexado. Instalei drivers de GPU e CUDA com base neste guia .

nvidia-smi check - ok.

nvcc -V check - ok

Agora, estou tentando garantir que posso executar renderização sem cabeçalho com o OpenGL.

Eu tentei isso:

sudo nvidia-xconfig -a --use-display-device=none

para configurar o xconfig.

Então:

export DISPLAY=:0

Finalmente, executando o glxgears:

glxinfo | grep OpenGL

Estou recebendo este erro:

No protocol specified Error: unable to open display :0

Meu arquivo xorg.conf tem esta aparência:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 390.30  (buildmeister@swio-display-x64-rhel04-14)  Wed Jan 31 22:46:17 PST 2018
Section "ServerFlags"
     Option "IgnoreABI" "True"
     Option "nolisten" "True"
     Option "AutoAddDevices" "False"
EndSection
Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "nvidia" 0 0
EndSection
Section "Files"
EndSection
Section "Device"
    Identifier     "nvidia"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "Tesla K80"
    BusID          "PCI:0:4:0"
EndSection
Section "Screen"
    Identifier     "nvidia"
    Device         "nvidia"
    Option         "UseDisplayDevice" "none"
EndSection

O que está faltando na minha configuração?

Meu sistema operacional: Ubuntu 16.04

    
por Michael IV 14.05.2018 / 13:08

0 respostas