Last change
on this file since 4620 was
4584,
checked in by ldelgass, 10 years ago
|
add configure for nanoscale
|
-
Property svn:mergeinfo set to
(toggle deleted branches)
/branches/1.3/packages/vizservers/start_nanoscale.sh.in | 4525 | /branches/nanovis2/packages/vizservers/start_nanoscale.sh.in | 3001-3361 |
|
File size:
766 bytes
|
Line | |
---|
1 | #! /bin/sh |
---|
2 | |
---|
3 | # Fail on errors |
---|
4 | set -e |
---|
5 | |
---|
6 | exec_prefix="@exec_prefix@" |
---|
7 | bindir="@bindir@" |
---|
8 | libdir="@libdir@" |
---|
9 | |
---|
10 | # lspci is either in /sbin or /usr/sbin |
---|
11 | PATH=/sbin:/usr/sbin:${bindir}:${PATH} |
---|
12 | LD_LIBRARY_PATH=${libdir}:${LD_LIBRARY_PATH} |
---|
13 | export PATH LD_LIBRARY_PATH |
---|
14 | |
---|
15 | # Determine the number of video cards we have. The new render server |
---|
16 | # motherboards have the useless XGI Volari onboard video controllers (no 3D |
---|
17 | # capabilities) so we have to make sure we count only the nVidia cards. |
---|
18 | |
---|
19 | numVideo=`lspci | fgrep VGA | fgrep -i NVIDIA | wc -l` |
---|
20 | |
---|
21 | # Don't let nanoscale and the visualization servers run away. Limit cpu time |
---|
22 | # to 20 minutes. |
---|
23 | |
---|
24 | minutes=20 |
---|
25 | ulimit -t $(expr ${minutes} \* 60 ) |
---|
26 | |
---|
27 | # Make /tmp the current working dirctory. |
---|
28 | cd /tmp |
---|
29 | |
---|
30 | exec ${bindir}/nanoscale -x ${numVideo} |
---|
Note: See
TracBrowser
for help on using the repository browser.