Through a bit of trial and error I think I've got it working in both Direct 
and Raw modes.

Using vglclient:
client> vglclient &
client> ssh -X <server>
server> export VGL_CLIENT=<client_ip>:0.0
server> vglrun -d :1 /opt/VirtualGL/bin/glxspheres64

This is on Ubuntu 18.04 which seems to create two displays when logged in 
on the server (one for gdm and one for the desktop).

Using vncserver:

server> /opt/TurboVNC/bin/vncserver
Desktop 'TurboVNC: server:2 (dave)' started on display server:2
client> /opt/TurboVNC/bin/vncviewer server:2 &
client> ssh server
server> DISPLAY=:2 vglrun -d :1 /opt/VirtualGL/bin/glxspheres64
Polygons in scene: 62464
Visual ID of window: 0xad
Context is Direct
OpenGL Renderer: GeForce RTX 2080

App is rendering in the vnc window on the client so I think I'm good.

Just to check,is it correct to use "ssh server" (no "-X") to hop to the 
server to launch applications (in this case)?

Thanks,

Dave.

On Friday, November 15, 2019 at 3:47:01 PM UTC+11, DRC wrote:
>
> I’ll try to repro it. It may require a similar fix to the one I made in 
> 2.6.3 to support OpenGL/OpenCL interoperability.
>
> On Nov 14, 2019, at 7:54 PM, dave <[email protected] <javascript:>> wrote:
>
> I'm trying to run one of the NVidia CUDA sample programs on an application 
> server and view it in vncviewer.
>
> I start the vnc servine in one ssh session:
> $ /opt/TurboVNC/bin/vncserver
>
> and in another run the application but get the following error:
> $ vglrun -d :1 ./particles 
> CUDA Particles Simulation Starting...
>
> grid: 64 x 64 x 64 = 262144 cells
> particles: 16384
> GPU Device 0: "GeForce RTX 2080 Ti" with compute capability 7.5
>
> CUDA error at particleSystem_cuda.cu:79 code=30(cudaErrorUnknown) 
> "cudaGraphicsGLRegisterBuffer(cuda_vbo_resource, 
> vbo, cudaGraphicsMapFlagsNone)"
>
> Any tips on how to progress?
>
> Thanks, Dave
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "VirtualGL User Discussion/Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/virtualgl-users/09ad303d-2dd5-4143-a7e7-c67072afb9b0%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/virtualgl-users/09ad303d-2dd5-4143-a7e7-c67072afb9b0%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"VirtualGL User Discussion/Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/virtualgl-users/cd08376b-22e1-4ae6-8a13-672517ed859a%40googlegroups.com.

Reply via email to