File: mic-common

package info (click to toggle)
openmpi 5.0.8-4
  • links: PTS, VCS
  • area: main
  • in suites:
  • 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 (45 lines) | stat: -rw-r--r-- 1,031 bytes parent folder | download | duplicates (4)
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
# -*- shell-script -*-
# (c) 2013 Los Alamos National Security, LLC. All rights reserved.
# Open MPI common configuration for Darwin MIC Co-processors v1.7.x/1.8.x

XCOMPOSER=`type -p icc | sed 's/\/bin\/intel64\/icc//g'`

if test -z "$XCOMPOSER" ; then
    echo "ERROR: Need an intel compiler to compile MIC code"
    exit 1
fi

CC=icc
CXX=icpc
FC=ifort

CFLAGS=-mmic
CXXFLAGS=-mmic
LDFLAGS=-mmic

# Need to turn on cross-compiling mode
cross_compiling=yes
host_alias=blackfin

# Need to disable fortran for now (cross-compiling issue)
enable_mpi_fortran=no

# No PCI support on the MIC. Disable it here (was enabled in darwin-common)
enable_pci=no
enable_libpci=no
with_pmi=no
with_slurm=no

MIC_LDFLAGS="-L$XCOMPOSER/compiler/lib/mic -Wl,-rpath=$XCOMPOSER/compiler/lib/mic"

if test -n "$LDFLAGS" ; then
    LDFLAGS="$LDFLAGS $MIC_LDFLAGS"
else
    LDFLAGS="$MIC_LDFLAGS"
fi

if test -n "$with_wrapper_ldflags" ; then
    with_wrapper_ldflags="$with_wrapper_ldflags $MIC_LDFLAGS"
else
    with_wrapper_ldflags="$MIC_LDFLAGS"
fi