File: ornl_configure.pgi

package info (click to toggle)
openmpi 5.0.8-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 201,684 kB
  • sloc: ansic: 613,078; makefile: 42,353; sh: 11,194; javascript: 9,244; f90: 7,052; java: 6,404; perl: 5,179; python: 1,859; lex: 740; fortran: 61; cpp: 20; tcl: 12
file content (95 lines) | stat: -rwxr-xr-x 2,745 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#!/bin/bash

  echo ""
  echo "If you have not loaded the xt-catamount module or your version"
  echo "of automake is below 1.10.1, it is in your best interest to"
  echo "type <ctrl-C> now.  Note that loading the automake module on"
  echo "jaguar.ccs.ornl.gov/jaguarpf.ccs.ornl.gov will meet the"
  echo "latter requirement."
  read ANS

# Change the following for install path.  Note: VER appends to path.
  SRC_DIR=..
  INSTALL_ROOT=/tmp/work/keh/ompi-pgi-ken
  VER=standard
  BUILD=pgi
  SVER=cnl`echo "$XTOS_VERSION" | cut -c1-3`
  CVER=${BUILD}`pgcc -V | awk '/pgcc/{print $2}'|sed 's/-/./'`
  SW_BLDDIR=${INSTALL_ROOT}/${VER}/${SVER}_${CVER}

  PLATFORM=ornl/cray_xt_cnl_romio_debug
  XTOSVER=`echo "$XTOS_VERSION" | cut -c1,3`

# Set header file paths (structure of libsci changed at version 10.3.4).
  if [ -d ${LIBSCI_BASE_DIR}/${BUILD}/include ]
  then
	SCI_INC=-I${LIBSCI_BASE_DIR}/${BUILD}/include
	SCI_LIB=-L${LIBSCI_BASE_DIR}/${BUILD}/lib
  else
	SCI_INC=-I${LIBSCI_BASE_DIR}/${BUILD}/snos64/include
	SCI_LIB=-L${LIBSCI_BASE_DIR}/${BUILD}/snos64/lib
  fi

  if [ ! -d ${CATAMOUNT_DIR} ] ; then
      echo "Please load xt-catamount module"
      echo "    module load xt-catamount
  fi

  CAT_INC=-I${CATAMOUNT_DIR}/catamount/linux/include

  PCT_INC=-I${PE_DIR}/include
  PCT_LIB=-L${PE_DIR}/lib/snos64

  MPT_LIB=-L${MPT_DIR}/util/lib
  MPT_SO=-R${MPT_DIR}/util/lib

  SER_LIB=-L${SE_DIR}/lib/snos64

  BASE_LPATHS="${MPT_LIB} ${PCT_LIB} ${SER_LIB}"
  BASE_LIBS="-lrt -lpct -lalpslli -lalpsutil -lportals -lpthread -lm"
  MAKE_OPTS="-j 4 orted_LDFLAGS=-all-static"

  ID=x86_64-cray-linux-gnu
  JD=x86_64-unknown-linux-gnu

  umask 02
  rm -f build.log config.log

# Run the aclocal/autoconf/automake hierarchy.
# cd $SRC_DIR
#  ./autogen.pl                                  2>&1 | tee -a build.log
# cd $OLDPWD


# Do the configure.
$SRC_DIR/configure \
	NM=/usr/bin/nm \
	CC=pgcc \
	CXX=pgCC \
	F77=pgf77 \
	FC=pgf90 \
	CPPFLAGS="${CAT_INC} ${PCT_INC}" \
	LDFLAGS="${BASE_LPATHS} ${MPT_SO}" \
	LIBS="${BASE_LIBS}" \
	--host=${ID} \
	--build=${JD} \
	--disable-mpi-cxx \
	--disable-mpi-f77 \
	--disable-mpi-f90 \
	--disable-heterogeneous \
	--without-tm \
	--with-alps \
	--with-threads \
	--with-platform=${SRC_DIR}/contrib/platform/${PLATFORM} \
	--with-io-romio-flags="host_alias=${ID} build_alias=${JD} \
		--enable-ltdl-convenience --no-recursion" \
	--with-wrapper-cflags="${SCI_INC}" \
	--with-wrapper-ldflags="-Bstatic ${SCI_LIB} ${BASE_LPATHS}" \
	--with-wrapper-libs="-lsci_quadcore" \
	--prefix=${SW_BLDDIR}                   2>&1 | tee -a build.log

# Build.
  gmake ${MAKE_OPTS} all                        2>&1 | tee -a build.log

# Install.
  gmake ${MAKE_OPTS} install                    2>&1 | tee -a build.log