source: trunk/packages/vizservers/startnanoscale.sh.in @ 2344

Last change on this file since 2344 was 2344, checked in by gah, 11 years ago

new nanoscale

File size: 694 bytes
Line 
1#! /bin/sh
2
3DISPLAY=:0
4export DISPLAY
5
6# Fail on errors
7set -e
8
9exec_prefix="@exec_prefix@"
10bindir="@bindir@"
11libdir="@libdir@"
12. ${bindir}/rappture.env
13
14# Determine the number of video cards we have.  The new render server
15# motherboards have the useless XGI Volari onboard video controllers (no 3D
16# capabilities) so we have to make sure we count only the nVidia cards.
17
18numVideo=`lspci | fgrep VGA | fgrep nVidia | wc -l`
19
20# Don't let nanoscale and the visualization servers run away.  Limit cpu time
21# to 20 minutes.
22
23minutes=20
24ulimit -t $(expr ${minutes} \* 60 )
25
26# Make /tmp the current working dirctory.
27cd /tmp
28
29exec ${bindir}/nanoscale -x ${numVideo} -f ${libdir}/renderservers.tcl
30
31
Note: See TracBrowser for help on using the repository browser.