Matlab-interactive

From FarmShare

Revision as of 23:22, 30 September 2014 by Chekh (Talk | contribs)
Jump to: navigation, search

Contents

interactive matlab

interactive matlab via X11 tunnel - GUI (mac/linux)

This is the "regular" way to use it, it pops up a GUI.

ssh -X corn.stanford.edu
module load matlab
matlab

If your X11 forwarding is configured correctly, it will pop up the MATLAB gui on your display.

If you don't have X11 forwarding enabled, you'll get an error message like this:

 Warning: No display specified.  You will not be able to display graphics on the screen.

and then you get the cli interface.

You may also get an error like

 /usr/bin/xauth:  timeout in locking authority file /afs/ir/users/c/h/chekh/.Xauthority

That means something went wrong with your login, try again? Maybe try a 'kdestroy' on your machine, or else configure your SSH client for GSSAPI per Advanced Connection Options.

interactive matlab - CLI

If you want the cli interface, just use 'matlab -nodesktop'.

If you want a single-threaded matlab, use something like

 matlab -nosplash -nodesktop -nodisplay -singleCompThread

interactive matlab via VNC - GUI (all platforms)

If you setup a VNC session as described here you can run run matlab in a full desktop environment. This has the advantage that you can connect and disconnect at will without disturbing your running matlab.

Runmatlabcorn1.png


Runmatlabrye1.png



>> opengl info

Version         = 2.1 Mesa 9.1.4
Vendor          = VMware, Inc.
Renderer        = Gallium 0.4 on llvmpipe (LLVM 3.2, 128 bits)
MaxTextureSize  = 8192
Visual          = 0xfd (TrueColor, depth 24, RGB mask 0xff0000 0xff00 0x00ff)
Software        = false
# of Extensions = 162

Driver Bug Workarounds:
OpenGLBitmapZbufferBug    = 0
OpenGLWobbleTesselatorBug = 0
OpenGLLineSmoothingBug    = 0
OpenGLClippedImageBug     = 0
OpenGLEraseModeBug        = 0


>>






You can also run matlab on rye02 to get accelerated graphics and CUDA. In my testing I have not noticed very impressive graphics performance from matlab so YMMV.

For examples of running CUDA code see here: MatlabGPUDemo1

>> opengl info

Version         = 4.3.0 NVIDIA 319.37
Vendor          = NVIDIA Corporation
Renderer        = GeForce GTX 480/PCIe/SSE2
MaxTextureSize  = 16384
Visual          = 0x27 (TrueColor, depth 24, RGB mask 0xff0000 0xff00 0x00ff)
Software        = false
# of Extensions = 272

Driver Bug Workarounds:
OpenGLBitmapZbufferBug    = 0
OpenGLWobbleTesselatorBug = 0
OpenGLLineSmoothingBug    = 0
OpenGLClippedImageBug     = 1
OpenGLEraseModeBug        = 0


>>
Personal tools
Toolbox
LANGUAGES