Can I use the hardware graphics acceleration from my client machine in a copy of MATLAB 7.6 (R2008a) located on a server but running locally?

5 views (last 30 days)
I am locally running a copy of MATLAB stored on a central server. I want to dynamically link the hardware graphics acceleration libraries from my the different local machines I use to the server version of MATLAB to improve graphics display performance.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
It should be possible to have hardware graphics acceleration turned on for MATLAB, but it requires setting up each client machine. MATLAB uses the library path defined by the Linux operating system to find the graphics libraries. Thus, before MATLAB is started, the library path must be set within Linux to include the directory where the client’s hardware graphics acceleration libraries reside. The following steps should help you enable your local hardware graphics accleration in MATLAB:
1) The hardware graphics acceleration should be installed and enabled on each Linux box. You can verify this by typing
glxinfo | grep render
and ensuring that the output indicates that direct rendering is turned on.
2) If the hardware graphics libraries are installed, the following Linux command can be used to verify which OpenGL library file MATLAB is using:
ldd /usr/matlab/bin/glnx86/glren.so
If the appropriate hardware-specific libraries are listed, then the user should have access to graphics acceleration when running MATLAB on their client machine. If not, steps 3-5 will set up the library path to include the hardware-specific libraries.
3) Determine where the hardware-specific libGL and libGLU libraries are, for example:
/usr/lib/libGL.so
/usr/matlab/sys/opengl/lib/glnx86/libGLU.so
4) For each machine, within Linux, create a symbolic link in a single directory to these hardware graphics libraries, for example:
cd /usr/ client_hardware_graphics_lib
ln -s /usr/lib/libGL.so libGL.so
ln -s /usr/matlab/sys/opengl/lib/glnx86/libGLU.so libGLU.so
5) The library path needs to have this directory (client_hardware_graphics_lib) appended to its beginning. The appropriate path will be different based on the client machine, so the best time to update the library path would be right before MATLAB is started up. Thus, the command to start MATLAB could be wrapped in a script that executes both these commands:
setenv LD_LIBRARY_PATH /usr/ client_hardware_graphics_lib: $LD_LIBRARY_PATH
run MATLAB
These steps may be simplified if the hardware graphics acceleration libraries are located in the same local directory on each machine. Then, the setenv path would be the same for each machine, although the files would be different.

More Answers (0)

Products


Release

R2008a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!