File: mpicc-sh

package info (click to toggle)
yorick 2.2.03+dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 9,620 kB
  • ctags: 9,317
  • sloc: ansic: 85,521; sh: 1,665; cpp: 1,282; lisp: 1,234; makefile: 1,034; fortran: 19
file content (14 lines) | stat: -rwxr-xr-x 241 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
# mpicc command for LAM, just hcc with -lmpi if no -c option
args=$*
load=yes
while [ $# -gt 0 ]
do
  case $1 in
    -c)     load=no;;
    *)      ;;
  esac
  shift
done
if test "$load" = yes; then args="$args -lmpi"; fi
hcc $args