> On Nov 19, 2019, at 8:36 PM, dave-ms <[email protected]> 
> wrote:
> 
> Through a bit of trial and error I think I've got it working in both Direct 
> and Raw modes.

OK, so the problem was not related to CUDA?


> 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).

It does that because Wayland is enabled. Recent versions of vglserver_config 
disable Wayland logins in GDM for that reason. Otherwise, if GDM is running in 
Wayland mode, the GDM scripts that vglserver_config modifies in order to grant 
users access to the 3D X server are never executed. Regardless, logging in 
locally when using the 3D X server for VirtualGL is not supported. When you log 
out, the X server will reset, which would have the effect of aborting every 3D 
application currently running with VirtualGL. All the more reason why I’m 
trying desperately to develop an EGL back end, but unfortunately it has turned 
into more of a 300-hour project than the 50-hour project I originally 
envisioned, and there will be some compatibility limitations to that back end 
once it is finished.


> 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)?

Yes. -X is never needed with the official VirtualGL launch procedures. If 
you’re using the VGL Transport (which hasn’t been called “Direct Mode” for many 
years), then vglconnect will automatically enable X11 forwarding in the SSH 
connection (which is what -X does.) If you’re using the X11 Transport with an X 
proxy, then X11 forwarding is not needed.

> 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]> 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].
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/virtualgl-users/09ad303d-2dd5-4143-a7e7-c67072afb9b0%40googlegroups.com.
> 
> -- 
> 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.

-- 
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/339C09E1-21DB-427C-939B-51B4455BA221%40virtualgl.org.

Reply via email to