impi-devel 2021.14.0__py2.py3-none-manylinux_2_28_x86_64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of impi-devel might be problematic. Click here for more details.
- impi_devel-2021.14.0.data/data/bin/mpicc +81 -0
- impi_devel-2021.14.0.data/data/bin/mpicxx +81 -0
- impi_devel-2021.14.0.data/data/bin/mpif77 +740 -0
- impi_devel-2021.14.0.data/data/bin/mpif90 +921 -0
- impi_devel-2021.14.0.data/data/bin/mpifc +81 -0
- impi_devel-2021.14.0.data/data/bin/mpigcc +661 -0
- impi_devel-2021.14.0.data/data/bin/mpigxx +662 -0
- impi_devel-2021.14.0.data/data/bin/mpiicc +42 -0
- impi_devel-2021.14.0.data/data/bin/mpiicpc +42 -0
- impi_devel-2021.14.0.data/data/bin/mpiicpx +565 -0
- impi_devel-2021.14.0.data/data/bin/mpiicx +557 -0
- impi_devel-2021.14.0.data/data/bin/mpiifort +46 -0
- impi_devel-2021.14.0.data/data/bin/mpiifx +731 -0
- impi_devel-2021.14.0.data/data/include/mpi.h +3594 -0
- impi_devel-2021.14.0.data/data/include/mpicxx.h +2796 -0
- impi_devel-2021.14.0.data/data/include/mpif.h +633 -0
- impi_devel-2021.14.0.data/data/include/mpio.h +765 -0
- impi_devel-2021.14.0.data/data/share/doc/mpi/licensing/license.txt +72 -0
- impi_devel-2021.14.0.data/data/share/doc/mpi/licensing/third-party-programs.txt +1476 -0
- impi_devel-2021.14.0.dist-info/LICENSE.txt +25 -0
- impi_devel-2021.14.0.dist-info/METADATA +23 -0
- impi_devel-2021.14.0.dist-info/RECORD +24 -0
- impi_devel-2021.14.0.dist-info/WHEEL +6 -0
- impi_devel-2021.14.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,557 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
#
|
|
3
|
+
# Copyright Intel Corporation.
|
|
4
|
+
#
|
|
5
|
+
# This software and the related documents are Intel copyrighted materials, and
|
|
6
|
+
# your use of them is governed by the express license under which they were
|
|
7
|
+
# provided to you (License). Unless the License provides otherwise, you may
|
|
8
|
+
# not use, modify, copy, publish, distribute, disclose or transmit this
|
|
9
|
+
# software or the related documents without Intel's prior written permission.
|
|
10
|
+
#
|
|
11
|
+
# This software and the related documents are provided as is, with no express
|
|
12
|
+
# or implied warranties, other than those that are expressly stated in the
|
|
13
|
+
# License.
|
|
14
|
+
#.
|
|
15
|
+
# (C) 2006 by Argonne National Laboratory.
|
|
16
|
+
#
|
|
17
|
+
# COPYRIGHT
|
|
18
|
+
#
|
|
19
|
+
# The following is a notice of limited availability of the code, and disclaimer
|
|
20
|
+
# which must be included in the prologue of the code and in all source listings
|
|
21
|
+
# of the code.
|
|
22
|
+
#
|
|
23
|
+
# Copyright Notice
|
|
24
|
+
# 1998--2020, Argonne National Laboratory
|
|
25
|
+
#
|
|
26
|
+
# Permission is hereby granted to use, reproduce, prepare derivative works, and
|
|
27
|
+
# to redistribute to others. This software was authored by:
|
|
28
|
+
#
|
|
29
|
+
# Mathematics and Computer Science Division
|
|
30
|
+
# Argonne National Laboratory, Argonne IL 60439
|
|
31
|
+
#
|
|
32
|
+
# (and)
|
|
33
|
+
#
|
|
34
|
+
# Department of Computer Science
|
|
35
|
+
# University of Illinois at Urbana-Champaign
|
|
36
|
+
#
|
|
37
|
+
#
|
|
38
|
+
# GOVERNMENT LICENSE
|
|
39
|
+
#
|
|
40
|
+
# Portions of this material resulted from work developed under a U.S.
|
|
41
|
+
# Government Contract and are subject to the following license: the Government
|
|
42
|
+
# is granted for itself and others acting on its behalf a paid-up, nonexclusive,
|
|
43
|
+
# irrevocable worldwide license in this computer software to reproduce, prepare
|
|
44
|
+
# derivative works, and perform publicly and display publicly.
|
|
45
|
+
#
|
|
46
|
+
# DISCLAIMER
|
|
47
|
+
#
|
|
48
|
+
# This computer code material was prepared, in part, as an account of work
|
|
49
|
+
# sponsored by an agency of the United States Government. Neither the United
|
|
50
|
+
# States, nor the University of Chicago, nor any of their employees, makes any
|
|
51
|
+
# warranty express or implied, or assumes any legal liability or responsibility
|
|
52
|
+
# for the accuracy, completeness, or usefulness of any information, apparatus,
|
|
53
|
+
# product, or process disclosed, or represents that its use would not infringe
|
|
54
|
+
# privately owned rights.
|
|
55
|
+
#
|
|
56
|
+
# EXTERNAL CONTRIBUTIONS
|
|
57
|
+
#
|
|
58
|
+
# Portions of this code have been contributed under the above license by:
|
|
59
|
+
#
|
|
60
|
+
# * Intel Corporation
|
|
61
|
+
# * Cray
|
|
62
|
+
# * IBM Corporation
|
|
63
|
+
# * Microsoft Corporation
|
|
64
|
+
# * Mellanox Technologies Ltd.
|
|
65
|
+
# * DataDirect Networks.
|
|
66
|
+
# * Oak Ridge National Laboratory
|
|
67
|
+
# * Sun Microsystems, Lustre group
|
|
68
|
+
# * Dolphin Interconnect Solutions Inc.
|
|
69
|
+
# * Institut Polytechnique de Bordeaux
|
|
70
|
+
#
|
|
71
|
+
# .
|
|
72
|
+
#
|
|
73
|
+
# mpicc
|
|
74
|
+
# Simple script to compile and/or link MPI programs.
|
|
75
|
+
# This script knows the default flags and libraries, and can handle
|
|
76
|
+
# alternative C compilers and the associated flags and libraries.
|
|
77
|
+
# The important terms are:
|
|
78
|
+
# includedir, libdir - Directories containing an *installed* mpich2
|
|
79
|
+
# prefix, execprefix - Often used to define includedir and libdir
|
|
80
|
+
# CC - C compiler
|
|
81
|
+
# WRAPPER_CFLAGS - Any special flags needed to compile
|
|
82
|
+
# WRAPPER_LDFLAGS - Any special flags needed to link
|
|
83
|
+
# MPILIBNAME - Name of the MPI library
|
|
84
|
+
# MPI_OTHERLIBS - Other libraries needed in order to link
|
|
85
|
+
#
|
|
86
|
+
# We assume that (a) the C compiler can both compile and link programs
|
|
87
|
+
#
|
|
88
|
+
# Handling of command-line options:
|
|
89
|
+
# This is a little tricky because some options may contain blanks.
|
|
90
|
+
#
|
|
91
|
+
# Special issues with shared libraries - todo
|
|
92
|
+
#
|
|
93
|
+
# --------------------------------------------------------------------------
|
|
94
|
+
|
|
95
|
+
# Set the default values of all variables.
|
|
96
|
+
#
|
|
97
|
+
# Directory locations: Fixed for any MPI implementation.
|
|
98
|
+
# Set from the directory arguments to configure (e.g., --prefix=/usr/local)
|
|
99
|
+
prefix=I_MPI_SUBSTITUTE_INSTALLDIR
|
|
100
|
+
# The environment variable I_MPI_ROOT may be used to override installation folder path
|
|
101
|
+
if [ -n "${I_MPI_ROOT}" ] ; then
|
|
102
|
+
prefix="${I_MPI_ROOT}";
|
|
103
|
+
fi
|
|
104
|
+
|
|
105
|
+
sysconfdir=${prefix}/etc
|
|
106
|
+
includedir=${prefix}/include
|
|
107
|
+
libdir=${prefix}/lib
|
|
108
|
+
if [ ! -f "${I_MPI_ROOT}/lib/mpi/debug/libmpi.so" ]; then
|
|
109
|
+
release_lib_dir="/release"
|
|
110
|
+
debug_lib_dir="/debug"
|
|
111
|
+
else
|
|
112
|
+
sysconfdir=${prefix}/opt/mpi/etc
|
|
113
|
+
release_lib_dir=""
|
|
114
|
+
debug_lib_dir="/mpi/debug"
|
|
115
|
+
fi
|
|
116
|
+
MPILIBDIR=${release_lib_dir}
|
|
117
|
+
|
|
118
|
+
# The environment variable I_MPI_COMPILER_CONFIG_DIR may be used to override
|
|
119
|
+
# folder where *.conf files are placed
|
|
120
|
+
if [ -n "$I_MPI_COMPILER_CONFIG_DIR" ] ; then
|
|
121
|
+
sysconfdir=$I_MPI_COMPILER_CONFIG_DIR;
|
|
122
|
+
fi
|
|
123
|
+
|
|
124
|
+
#
|
|
125
|
+
# Default settings for compiler, flags, and libraries.
|
|
126
|
+
# Determined by a combination of environment variables and tests within
|
|
127
|
+
# configure (e.g., determining whehter -lsocket is needee)
|
|
128
|
+
CC="icx"
|
|
129
|
+
CFLAGS=""
|
|
130
|
+
LDFLAGS="-ldl"
|
|
131
|
+
MPILIBNAME="mpi"
|
|
132
|
+
|
|
133
|
+
# MPIVERSION is the version of the MPICH2 library that mpicc is intended for
|
|
134
|
+
MPIVERSION="2021.14"
|
|
135
|
+
#
|
|
136
|
+
# Internal variables
|
|
137
|
+
# Show is set to echo to cause the compilation command to be echoed instead
|
|
138
|
+
# of executed.
|
|
139
|
+
Show=
|
|
140
|
+
static_mpi=no
|
|
141
|
+
strip_debug_info=
|
|
142
|
+
handle_executable=
|
|
143
|
+
executable=a.out
|
|
144
|
+
ilp64=no
|
|
145
|
+
no_rpath=no
|
|
146
|
+
#
|
|
147
|
+
# End of initialization of variables
|
|
148
|
+
#---------------------------------------------------------------------
|
|
149
|
+
# Environment Variables.
|
|
150
|
+
# The environment variables I_MPI_CC, MPICH_CC may be used to override the
|
|
151
|
+
# default choices. I_MPI_CC has higher priority than MPICH_CC.
|
|
152
|
+
# In addition, if there is a file $sysconfdir/mpicc-$CCname.conf,
|
|
153
|
+
# where CCname is the name of the compiler with all spaces replaced by hyphens
|
|
154
|
+
# (e.g., "cc -64" becomes "cc--64", that file is sources, allowing other
|
|
155
|
+
# changes to the compilation environment. See the variables used by the
|
|
156
|
+
# script (defined above)
|
|
157
|
+
if [ -n "$I_MPI_CC" ] ; then
|
|
158
|
+
CC="$I_MPI_CC"
|
|
159
|
+
CCname=$(echo "$CC" | sed 's/ /-/g')
|
|
160
|
+
if [ -s $sysconfdir/mpicc-$(basename $CCname).conf ] ; then
|
|
161
|
+
. $sysconfdir/mpicc-$(basename $CCname).conf
|
|
162
|
+
fi
|
|
163
|
+
else
|
|
164
|
+
if [ -n "$MPICH_CC" ] ; then
|
|
165
|
+
CC="$MPICH_CC"
|
|
166
|
+
CCname=$(echo $CC | sed 's/ /-/g')
|
|
167
|
+
if [ -s $sysconfdir/mpicc-$(basename $CCname).conf ] ; then
|
|
168
|
+
. $sysconfdir/mpicc-$(basename $CCname).conf
|
|
169
|
+
fi
|
|
170
|
+
fi
|
|
171
|
+
fi
|
|
172
|
+
if [ -n "$I_MPI_DEBUG_INFO_STRIP" ] ; then
|
|
173
|
+
for comp_val in "0" "off" "no" "disable"
|
|
174
|
+
do
|
|
175
|
+
if [ "$I_MPI_DEBUG_INFO_STRIP" = "$comp_val" ] ; then
|
|
176
|
+
strip_debug_info=no
|
|
177
|
+
break
|
|
178
|
+
fi
|
|
179
|
+
done
|
|
180
|
+
fi
|
|
181
|
+
# Allow a profiling option to be selected through an environment variable
|
|
182
|
+
if [ -n "$MPICC_PROFILE" ] ; then
|
|
183
|
+
profConf=$MPICC_PROFILE
|
|
184
|
+
fi
|
|
185
|
+
if [ -n "$I_MPI_CC_PROFILE" ] ; then
|
|
186
|
+
profConf=$I_MPI_CC_PROFILE
|
|
187
|
+
fi
|
|
188
|
+
|
|
189
|
+
# Override default mpi library
|
|
190
|
+
if [ -n "$I_MPI_LINK" ] ; then
|
|
191
|
+
mpilib_override=$I_MPI_LINK
|
|
192
|
+
fi
|
|
193
|
+
|
|
194
|
+
#
|
|
195
|
+
# ------------------------------------------------------------------------
|
|
196
|
+
# Argument processing.
|
|
197
|
+
# This is somewhat awkward because of the handling of arguments within
|
|
198
|
+
# the shell. We want to handle arguments that include spaces without
|
|
199
|
+
# loosing the spacing (an alternative would be to use a more powerful
|
|
200
|
+
# scripting language that would allow us to retain the array of values,
|
|
201
|
+
# which the basic (rather than enhanced) Bourne shell does not.
|
|
202
|
+
#
|
|
203
|
+
# Look through the arguments for arguments that indicate compile only.
|
|
204
|
+
# If these are *not* found, add the library options
|
|
205
|
+
|
|
206
|
+
linking=yes
|
|
207
|
+
allargs=""
|
|
208
|
+
for arg in "$@" ; do
|
|
209
|
+
# Set addarg to no if this arg should be ignored by the C compiler
|
|
210
|
+
addarg=yes
|
|
211
|
+
qarg=$arg
|
|
212
|
+
if [ "x$handle_executable" = "xyes" ] ; then
|
|
213
|
+
executable=$arg
|
|
214
|
+
handle_executable=
|
|
215
|
+
fi
|
|
216
|
+
case "$arg" in
|
|
217
|
+
# ----------------------------------------------------------------
|
|
218
|
+
# Compiler options that affect whether we are linking or no
|
|
219
|
+
-c|-S|-E|-M|-MM)
|
|
220
|
+
# The compiler links by default
|
|
221
|
+
linking=no
|
|
222
|
+
;;
|
|
223
|
+
-o )
|
|
224
|
+
handle_executable=yes
|
|
225
|
+
addarg=yes
|
|
226
|
+
;;
|
|
227
|
+
# ----------------------------------------------------------------
|
|
228
|
+
# Options that control how we use mpicc (e.g., -show,
|
|
229
|
+
# -cc=* -config=*
|
|
230
|
+
-echo)
|
|
231
|
+
addarg=no
|
|
232
|
+
set -x
|
|
233
|
+
;;
|
|
234
|
+
-cc=*)
|
|
235
|
+
CC=$(echo A$arg | sed -e 's/A-cc=//g')
|
|
236
|
+
if [ "$#" -eq "1" ] ; then
|
|
237
|
+
echo "Error: extra arguments required"
|
|
238
|
+
echo "usage: $(basename $0) -cc=<name> -v"
|
|
239
|
+
exit 1
|
|
240
|
+
fi
|
|
241
|
+
addarg=no
|
|
242
|
+
;;
|
|
243
|
+
-show)
|
|
244
|
+
addarg=no
|
|
245
|
+
Show=echo
|
|
246
|
+
;;
|
|
247
|
+
-show_env)
|
|
248
|
+
show_env=yes
|
|
249
|
+
;;
|
|
250
|
+
-config=*)
|
|
251
|
+
addarg=no
|
|
252
|
+
CCname=$(echo A$arg | sed -e 's/A-config=//g')
|
|
253
|
+
if [ -s "$sysconfdir/mpicc-$CCname.conf" ] ; then
|
|
254
|
+
. "$sysconfdir/mpicc-$CCname.conf"
|
|
255
|
+
else
|
|
256
|
+
echo "Configuration file mpicc-$CCname.conf not found"
|
|
257
|
+
fi
|
|
258
|
+
;;
|
|
259
|
+
-compile-info|-compile_info)
|
|
260
|
+
# -compile_info included for backward compatibility
|
|
261
|
+
Show=echo
|
|
262
|
+
addarg=no
|
|
263
|
+
;;
|
|
264
|
+
-link-info|-link_info)
|
|
265
|
+
# -link_info included for backward compatibility
|
|
266
|
+
Show=echo
|
|
267
|
+
addarg=no
|
|
268
|
+
;;
|
|
269
|
+
-v)
|
|
270
|
+
# Pass this argument to the compiler as well.
|
|
271
|
+
echo "$(basename $0) for the Intel(R) MPI Library $MPIVERSION for Linux*"
|
|
272
|
+
echo "Copyright Intel Corporation."
|
|
273
|
+
linking=no
|
|
274
|
+
;;
|
|
275
|
+
-V)
|
|
276
|
+
# Pass this argument to the compiler to query the compiler version.
|
|
277
|
+
linking=no
|
|
278
|
+
;;
|
|
279
|
+
-profile=*)
|
|
280
|
+
# Pass the name of a profiling configuration. As
|
|
281
|
+
# a special case, lib<name>.so or lib<name>.la may be used
|
|
282
|
+
# if the library is in $libdir
|
|
283
|
+
# Loading the profConf file is handled below
|
|
284
|
+
profConf=$(echo A$arg | sed -e 's/A-profile=//g')
|
|
285
|
+
addarg=no
|
|
286
|
+
;;
|
|
287
|
+
-help)
|
|
288
|
+
# Print mini-help if started without parameters
|
|
289
|
+
echo "Simple script to compile and/or link MPI programs."
|
|
290
|
+
echo "Usage: $(basename $0) [options] <files>"
|
|
291
|
+
echo "----------------------------------------------------------------------------"
|
|
292
|
+
echo "The following options are supported:"
|
|
293
|
+
echo " -cc=<name> specify a C compiler name: i.e. -cc=icc"
|
|
294
|
+
echo " -echo print the scripts during their execution"
|
|
295
|
+
echo " -show show command lines without real calling"
|
|
296
|
+
echo " -show_env show environment variables"
|
|
297
|
+
echo " -config=<name> specify a configuration file: i.e. -config=icc for mpicc-icc.conf file"
|
|
298
|
+
echo " -v print version info of $(basename $0) and its native compiler"
|
|
299
|
+
echo " -profile=<name> specify a profile configuration file (an MPI profiling"
|
|
300
|
+
echo " library): i.e. -profile=myprofile for the myprofile.cfg file."
|
|
301
|
+
echo " As a special case, lib<name>.so or lib<name>.a may be used"
|
|
302
|
+
echo " if the library is found"
|
|
303
|
+
echo " -check_mpi link against the Intel(R) Trace Collector (-profile=vtmc)."
|
|
304
|
+
echo " -static_mpi link the Intel(R) MPI Library statically"
|
|
305
|
+
echo " -mt_mpi link the thread safe version of the Intel(R) MPI Library"
|
|
306
|
+
echo " -ilp64 link the ILP64 support of the Intel(R) MPI Library"
|
|
307
|
+
echo " -t or -trace"
|
|
308
|
+
echo " link against the Intel(R) Trace Collector"
|
|
309
|
+
echo " -trace-imbalance"
|
|
310
|
+
echo " link against the Intel(R) Trace Collector imbalance library"
|
|
311
|
+
echo " (-profile=vtim)"
|
|
312
|
+
echo " -dynamic_log link against the Intel(R) Trace Collector dynamically"
|
|
313
|
+
echo " -static use static linkage method"
|
|
314
|
+
echo " -nostrip turn off the debug information stripping during static linking"
|
|
315
|
+
echo " -fast the same as -static_mpi + pass -fast option to a compiler"
|
|
316
|
+
echo " -O enable optimization"
|
|
317
|
+
echo " -link_mpi=<name>"
|
|
318
|
+
echo " link against the specified version of the Intel(R) MPI Library"
|
|
319
|
+
echo " i.e -link_mpi=opt|opt_mt|dbg|dbg_mt"
|
|
320
|
+
echo " -norpath disable rpath for compiler wrapper of the Intel(R) MPI Library"
|
|
321
|
+
echo "All other options will be passed to the compiler without changing."
|
|
322
|
+
echo "----------------------------------------------------------------------------"
|
|
323
|
+
echo "The following environment variables are used:"
|
|
324
|
+
echo " I_MPI_ROOT the Intel(R) MPI Library installation directory path"
|
|
325
|
+
echo " I_MPI_CC or MPICH_CC"
|
|
326
|
+
echo " the path/name of the underlying compiler to be used"
|
|
327
|
+
echo " I_MPI_CC_PROFILE or MPICC_PROFILE"
|
|
328
|
+
echo " the name of profile file (without extension)"
|
|
329
|
+
echo " I_MPI_COMPILER_CONFIG_DIR"
|
|
330
|
+
echo " the folder which contains configuration files *.conf"
|
|
331
|
+
echo " I_MPI_TRACE_PROFILE"
|
|
332
|
+
echo " specify a default profile for the -trace option"
|
|
333
|
+
echo " I_MPI_CHECK_PROFILE"
|
|
334
|
+
echo " specify a default profile for the -check_mpi option"
|
|
335
|
+
echo " I_MPI_LINK specify the version of the Intel(R) MPI Library"
|
|
336
|
+
echo " I_MPI_DEBUG_INFO_STRIP"
|
|
337
|
+
echo " turn on/off the debug information stripping during static linking"
|
|
338
|
+
echo "----------------------------------------------------------------------------"
|
|
339
|
+
exit 0
|
|
340
|
+
;;
|
|
341
|
+
-nolinkage)
|
|
342
|
+
# This internal option is used by wrapper driver scripts mpicc, mpicxx, mpifc when -v option is used.
|
|
343
|
+
linking=no
|
|
344
|
+
addarg=no
|
|
345
|
+
;;
|
|
346
|
+
-g)
|
|
347
|
+
MPILIBDIR=${release_lib_dir}
|
|
348
|
+
;;
|
|
349
|
+
-static_mpi)
|
|
350
|
+
static_mpi=yes
|
|
351
|
+
CFLAGS="$CFLAGS -Xlinker --export-dynamic"
|
|
352
|
+
addarg=no
|
|
353
|
+
;;
|
|
354
|
+
-static)
|
|
355
|
+
static_mpi=yes
|
|
356
|
+
CFLAGS="$CFLAGS -Xlinker --export-dynamic"
|
|
357
|
+
addarg=yes
|
|
358
|
+
;;
|
|
359
|
+
-mt_mpi)
|
|
360
|
+
addarg=no
|
|
361
|
+
;;
|
|
362
|
+
-ilp64)
|
|
363
|
+
ilp64=yes
|
|
364
|
+
addarg=no
|
|
365
|
+
;;
|
|
366
|
+
-check_mpi)
|
|
367
|
+
if [ -z "$profConf" ]; then
|
|
368
|
+
if [ -z "$I_MPI_CHECK_PROFILE" ]; then
|
|
369
|
+
profConf="vtmc"
|
|
370
|
+
else
|
|
371
|
+
profConf="$I_MPI_CHECK_PROFILE"
|
|
372
|
+
fi
|
|
373
|
+
else
|
|
374
|
+
echo "Warning: the -check_mpi option will be ignored because the profile was set."
|
|
375
|
+
fi
|
|
376
|
+
addarg=no
|
|
377
|
+
;;
|
|
378
|
+
-trace-imbalance)
|
|
379
|
+
if [ -z "$profConf" ]; then
|
|
380
|
+
profConf="vtim"
|
|
381
|
+
else
|
|
382
|
+
echo "Warning: the -trace-imbalance option will be ignored because the profile was set."
|
|
383
|
+
fi
|
|
384
|
+
addarg=no
|
|
385
|
+
;;
|
|
386
|
+
-t | -trace | -t=* | -trace=* )
|
|
387
|
+
if [ -z "$profConf" ]; then
|
|
388
|
+
if [ -z "$I_MPI_TRACE_PROFILE" ]; then
|
|
389
|
+
profConf="vt"
|
|
390
|
+
else
|
|
391
|
+
profConf="$I_MPI_TRACE_PROFILE"
|
|
392
|
+
fi
|
|
393
|
+
else
|
|
394
|
+
echo "Warning: the -trace option will be ignored because the profile was set."
|
|
395
|
+
fi
|
|
396
|
+
# Disable strip to prevent debug symbols into separate dbg file in case of static linking IMPI-1493
|
|
397
|
+
strip_debug_info=no
|
|
398
|
+
addarg=no
|
|
399
|
+
;;
|
|
400
|
+
-fast)
|
|
401
|
+
echo "Warning: the -fast option forces static linkage method for the Intel(R) MPI Library."
|
|
402
|
+
static_mpi=yes
|
|
403
|
+
CFLAGS="$CFLAGS -Xlinker --export-dynamic"
|
|
404
|
+
;;
|
|
405
|
+
-link_mpi=* )
|
|
406
|
+
mpilib_override=`echo A$arg | sed -e 's/A-link_mpi=//g'`
|
|
407
|
+
addarg=no
|
|
408
|
+
;;
|
|
409
|
+
-nostrip )
|
|
410
|
+
strip_debug_info=no
|
|
411
|
+
addarg=no
|
|
412
|
+
;;
|
|
413
|
+
-norpath )
|
|
414
|
+
no_rpath=yes
|
|
415
|
+
addarg=no
|
|
416
|
+
;;
|
|
417
|
+
# Other arguments. We are careful to handle arguments with
|
|
418
|
+
# quotes (we try to quote all arguments in case they include
|
|
419
|
+
# any spaces)
|
|
420
|
+
*\"*)
|
|
421
|
+
qarg="'$arg'"
|
|
422
|
+
;;
|
|
423
|
+
*\'*)
|
|
424
|
+
qarg=$(echo \"$arg\")
|
|
425
|
+
;;
|
|
426
|
+
*)
|
|
427
|
+
qarg="'$arg'"
|
|
428
|
+
;;
|
|
429
|
+
esac
|
|
430
|
+
if [ $addarg = yes ] ; then
|
|
431
|
+
allargs="$allargs $qarg"
|
|
432
|
+
fi
|
|
433
|
+
done
|
|
434
|
+
|
|
435
|
+
if [ $# -eq 0 ] ; then
|
|
436
|
+
echo "Error: Command line argument is needed!"
|
|
437
|
+
"$0" -help
|
|
438
|
+
exit 1
|
|
439
|
+
fi
|
|
440
|
+
|
|
441
|
+
if [ -n "$mpilib_override" ] ; then
|
|
442
|
+
case "$mpilib_override" in
|
|
443
|
+
opt )
|
|
444
|
+
MPILIBDIR=${release_lib_dir}
|
|
445
|
+
;;
|
|
446
|
+
opt_mt )
|
|
447
|
+
MPILIBDIR=${release_lib_dir}
|
|
448
|
+
;;
|
|
449
|
+
dbg )
|
|
450
|
+
MPILIBDIR=${debug_lib_dir}
|
|
451
|
+
;;
|
|
452
|
+
dbg_mt )
|
|
453
|
+
MPILIBDIR=${debug_lib_dir}
|
|
454
|
+
;;
|
|
455
|
+
* )
|
|
456
|
+
echo "Warning: incorrect library version specified. Automatically selected library will be used."
|
|
457
|
+
;;
|
|
458
|
+
esac
|
|
459
|
+
fi
|
|
460
|
+
# -----------------------------------------------------------------------
|
|
461
|
+
|
|
462
|
+
if [ "$static_mpi" = yes ] ; then
|
|
463
|
+
mpilibs="${libdir}/libmpifort.a ${libdir}${MPILIBDIR}/lib${MPILIBNAME}.a"
|
|
464
|
+
I_MPI_OTHERLIBS=""
|
|
465
|
+
MPI_OTHERLIBS=" -lrt -lpthread "
|
|
466
|
+
if [ "$ilp64" = yes ]; then
|
|
467
|
+
mpilibs="$libdir/libmpi_ilp64.a $mpilibs"
|
|
468
|
+
fi
|
|
469
|
+
if [ "x$strip_debug_info" = "x" ] ; then
|
|
470
|
+
strip_debug_info=yes
|
|
471
|
+
fi
|
|
472
|
+
else
|
|
473
|
+
mpilibs="-lmpifort -l$MPILIBNAME"
|
|
474
|
+
I_MPI_OTHERLIBS=""
|
|
475
|
+
MPI_OTHERLIBS=" -lrt -lpthread "
|
|
476
|
+
if [ "$ilp64" = yes ]; then
|
|
477
|
+
mpilibs="-lmpi_ilp64 $mpilibs"
|
|
478
|
+
fi
|
|
479
|
+
fi
|
|
480
|
+
# Derived variables. These are assembled from variables set from the
|
|
481
|
+
# default, environment, configuration file (if any) and command-line
|
|
482
|
+
# options (if any)
|
|
483
|
+
|
|
484
|
+
#
|
|
485
|
+
# Handle the case of a profile switch
|
|
486
|
+
if [ -n "$profConf" ] ; then
|
|
487
|
+
profConffile=
|
|
488
|
+
if [ -s "$libdir/lib$profConf.a" ] || [ -s "$libdir/lib$profConf.so" ] ; then
|
|
489
|
+
mpilibs="-l$profConf $mpilibs"
|
|
490
|
+
elif [ -s "$sysconfdir/$profConf.conf" ] ; then
|
|
491
|
+
profConffile="$sysconfdir/$profConf.conf"
|
|
492
|
+
elif [ -s "$profConf.conf" ] ; then
|
|
493
|
+
profConffile="$profConf.conf"
|
|
494
|
+
else
|
|
495
|
+
echo "Profiling configuration file $profConf.conf not found in $sysconfdir"
|
|
496
|
+
fi
|
|
497
|
+
if [ -n "$profConffile" ] && [ -s "$profConffile" ] ; then
|
|
498
|
+
. $profConffile
|
|
499
|
+
if [ -n "$PROFILE_INCPATHS" ] ; then
|
|
500
|
+
CFLAGS="$PROFILE_INCPATHS $CFLAGS"
|
|
501
|
+
fi
|
|
502
|
+
if [ -n "$PROFILE_PRELIB" ] ; then
|
|
503
|
+
mpilibs="$PROFILE_PRELIB $mpilibs"
|
|
504
|
+
fi
|
|
505
|
+
if [ -n "$PROFILE_POSTLIB" ] ; then
|
|
506
|
+
mpilibs="$mpilibs $PROFILE_POSTLIB"
|
|
507
|
+
fi
|
|
508
|
+
fi
|
|
509
|
+
fi
|
|
510
|
+
|
|
511
|
+
# -----------------------------------------------------------------------
|
|
512
|
+
#
|
|
513
|
+
# A temporary statement to invoke the compiler
|
|
514
|
+
# Place the -L before any args incase there are any mpi libraries in there.
|
|
515
|
+
# Eventually, we'll want to move this after any non-MPI implementation
|
|
516
|
+
# libraries.
|
|
517
|
+
# We use a single invocation of the compiler. This will be adequate until
|
|
518
|
+
# we run into a system that uses a separate linking command. With any luck,
|
|
519
|
+
# such archaic systems are no longer with us. This also lets us
|
|
520
|
+
# accept any argument; we don't need to know if we've seen a source
|
|
521
|
+
# file or an object file. Instead, we just check for an option that
|
|
522
|
+
# suppressing linking, such as -c or -M.
|
|
523
|
+
|
|
524
|
+
if [ "${show_env}" = "yes" ]; then
|
|
525
|
+
env | more
|
|
526
|
+
exit 0
|
|
527
|
+
fi
|
|
528
|
+
|
|
529
|
+
if [ "$no_rpath" = "yes" ]; then
|
|
530
|
+
rpath_opt="-Xlinker --enable-new-dtags"
|
|
531
|
+
else
|
|
532
|
+
rpath_opt="-Xlinker --enable-new-dtags -Xlinker -rpath -Xlinker \"${libdir}${MPILIBDIR}\" -Xlinker -rpath -Xlinker \"${libdir}\""
|
|
533
|
+
fi
|
|
534
|
+
if [ "$linking" = yes ] ; then
|
|
535
|
+
cmd_line="$CC $CFLAGS $allargs -I\"${includedir}\" -L\"${libdir}${MPILIBDIR}\" -L\"${libdir}\" $rpath_opt $mpilibs $I_MPI_OTHERLIBS $LDFLAGS $MPI_OTHERLIBS"
|
|
536
|
+
if [ "$Show" = echo ] ; then
|
|
537
|
+
echo $cmd_line
|
|
538
|
+
else
|
|
539
|
+
eval $(echo $cmd_line)
|
|
540
|
+
fi
|
|
541
|
+
rc=$?
|
|
542
|
+
if [ $rc -eq 0 ] && [ "x$strip_debug_info" = "xyes" ] ; then
|
|
543
|
+
$Show objcopy --only-keep-debug ${executable} ${executable}.dbg
|
|
544
|
+
$Show objcopy --strip-debug ${executable}
|
|
545
|
+
$Show objcopy --add-gnu-debuglink=${executable}.dbg ${executable}
|
|
546
|
+
fi
|
|
547
|
+
else
|
|
548
|
+
cmd_line="$CC $CFLAGS $allargs -I\"${includedir}\""
|
|
549
|
+
if [ "$Show" = echo ] ; then
|
|
550
|
+
echo "$cmd_line"
|
|
551
|
+
else
|
|
552
|
+
eval $(echo $cmd_line)
|
|
553
|
+
fi
|
|
554
|
+
rc=$?
|
|
555
|
+
fi
|
|
556
|
+
|
|
557
|
+
exit $rc
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
#
|
|
3
|
+
# Copyright Intel Corporation.
|
|
4
|
+
#
|
|
5
|
+
# This software and the related documents are Intel copyrighted materials, and
|
|
6
|
+
# your use of them is governed by the express license under which they were
|
|
7
|
+
# provided to you (License). Unless the License provides otherwise, you may
|
|
8
|
+
# not use, modify, copy, publish, distribute, disclose or transmit this
|
|
9
|
+
# software or the related documents without Intel's prior written permission.
|
|
10
|
+
#
|
|
11
|
+
# This software and the related documents are provided as is, with no express
|
|
12
|
+
# or implied warranties, other than those that are expressly stated in the
|
|
13
|
+
# License.
|
|
14
|
+
#
|
|
15
|
+
|
|
16
|
+
COMPILER="ifort"
|
|
17
|
+
TARGET_WRAPPER="mpiifx"
|
|
18
|
+
user_set_compiler=0
|
|
19
|
+
|
|
20
|
+
if [ -z "$1" ] ; then
|
|
21
|
+
${TARGET_WRAPPER} -help
|
|
22
|
+
exit 0
|
|
23
|
+
fi
|
|
24
|
+
|
|
25
|
+
for arg in "$@" ; do
|
|
26
|
+
case $arg in
|
|
27
|
+
-fc=*)
|
|
28
|
+
COMPILER=$(echo $arg | sed -e 's/-fc=//g')
|
|
29
|
+
user_set_compiler=1
|
|
30
|
+
;;
|
|
31
|
+
-f90=*)
|
|
32
|
+
COMPILER=$(echo $arg | sed -e 's/-f90=//g')
|
|
33
|
+
user_set_compiler=1
|
|
34
|
+
;;
|
|
35
|
+
esac
|
|
36
|
+
done
|
|
37
|
+
|
|
38
|
+
if [ -n "$I_MPI_F90" ] || [ -n "$MPICH_F90" ]; then
|
|
39
|
+
user_set_compiler=1
|
|
40
|
+
fi
|
|
41
|
+
|
|
42
|
+
if [ $user_set_compiler -eq 1 ] ; then
|
|
43
|
+
${TARGET_WRAPPER} "$@"
|
|
44
|
+
else
|
|
45
|
+
${TARGET_WRAPPER} -fc="${COMPILER}" "$@"
|
|
46
|
+
fi
|