source: trunk/packages/vizservers/start_nanoscale.sh.in @ 3935

Last change on this file since 3935 was 2984, checked in by gah, 8 years ago
File size: 722 bytes
Line 
1#! /bin/sh
2
3# Fail on errors
4set -e
5
6exec_prefix="@exec_prefix@"
7bindir="@bindir@"
8libdir="@libdir@"
9. ${bindir}/rappture.env
10
11# lspci is either in /sbin or /usr/sbin
12PATH=/sbin:/usr/sbin:${PATH}
13export 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
19numVideo=`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
24minutes=20
25ulimit -t $(expr ${minutes} \* 60 )
26
27# Make /tmp the current working dirctory.
28cd /tmp
29
30exec ${bindir}/nanoscale -x ${numVideo}
31
32
Note: See TracBrowser for help on using the repository browser.