Changeset 1265


Ignore:
Timestamp:
Jan 7, 2009 10:57:07 AM (14 years ago)
Author:
gah
Message:

Added check for nVidia video cards when determining the number of video
cards on a render server. Also, added fix to use hostname as the base address
for broadcasting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/start_viz.sh.in

    r1233 r1265  
    77set -e
    88
    9 broadcast="192.168.200.255"
     9# Use the IP address of this host to construct a broadcast address.  This
     10# feature will be hopefully going away very soon.
     11
     12broadcast=`hostname -i | sed 's/\.[0-9]* $/.255'`
     13
    1014render_dir="@prefix@"
    1115nanoscale_port=2000
     
    2529export PATH LD_LIBRARY_PATH PYMOL_PATH
    2630
    27 nvideo=`lspci | fgrep VGA | wc -l`
     31# Determine the number of video cards we have.  The new render server
     32# motherboards have the useless XGI Volaria onboard video controllers (no 3D
     33# capabilities) so we have to make sure we count only the nVidia cards.
     34
     35nvideo=`lspci | fgrep VGA | fgrep nVidia | wc -l`
     36
    2837nanoscale="${dir}/bin/nanoscale -x ${nvideo} -b $nanoscale_port -s $broadcast"
    2938nanovis="${dir}/bin/nanovis -p ${dir}/lib/shaders:${dir}/lib/resources"
Note: See TracChangeset for help on using the changeset viewer.