File: tdevice

package info (click to toggle)
mpich 1.1.0-3
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 22,116 kB
  • ctags: 27,349
  • sloc: ansic: 193,435; sh: 11,172; fortran: 6,545; makefile: 5,801; cpp: 5,020; tcl: 3,548; asm: 3,536; csh: 1,079; java: 614; perl: 183; awk: 168; sed: 70; f90: 62
file content (36 lines) | stat: -rwxr-xr-x 834 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh
#
#  Returns the default device for architecture
#  Usage: tdevice <architecture>
#
ARCH="$1"
DEVICE=""

# ch_p4 
case "$ARCH" in 
   sun4|solaris|IRIX|IRIX64|alpha|freebsd|LINUX|solaris86) DEVICE=ch_p4 ;;
   hpux)
       # Suggested by Gary Applegate (bigapple@wagner.convex.com)
       # Another possibility is to look at /lib/libail.sl
       if test -f /bin/sysinfo ; then
           DEVICE="ch_shmem"
       else
           DEVICE="ch_p4"
       fi
       ;;
   rs6000)
	# Now that IBM has an MPI, make that the default.
#       if test -f /usr/lpp/poe/bin/mpcc ; then
#           DEVICE="ch_mpl"
#       else
           DEVICE="ch_p4"
#       fi
       ;;
   paragon) DEVICE=nx ;;
   intelnx) DEVICE=ch_nx ;;
   meiko)   DEVICE=meiko ;;
   ncube)   DEVICE=ch_nc ;;
   *)       DEVICE=ch_p4 ;;
esac
echo $DEVICE
exit 0