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.

@@ -0,0 +1,42 @@
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="icpc"
17
+ TARGET_WRAPPER="mpiicpx"
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
+ -cxx=*)
28
+ COMPILER=$(echo $arg | sed -e 's/-cxx=//g')
29
+ user_set_compiler=1
30
+ ;;
31
+ esac
32
+ done
33
+
34
+ if [ -n "$I_MPI_CXX" ] || [ -n "$MPICH_CXX" ]; then
35
+ user_set_compiler=1
36
+ fi
37
+
38
+ if [ $user_set_compiler -eq 1 ] ; then
39
+ ${TARGET_WRAPPER} "$@"
40
+ else
41
+ ${TARGET_WRAPPER} -cxx="${COMPILER}" "$@"
42
+ fi
@@ -0,0 +1,565 @@
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
+ # mpicxx
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
+ # CXX - C compiler
81
+ # WRAPPER_CXXFLAGS - Any special flags needed to compile
82
+ # WRAPPER_LDFLAGS - Any special flags needed to link
83
+ # MPILIBNAME - Name of the MPI library
84
+ # MPICXXLIBNAME - Name of the C++ binding part of the MPI library
85
+ # MPI_OTHERLIBS - Other libraries needed in order to link
86
+ #
87
+ # We assume that (a) the C++ compiler can both compile and link programs
88
+ #
89
+ # Handling of command-line options:
90
+ # This is a little tricky because some options may contain blanks.
91
+ #
92
+ # Special issues with shared libraries - todo
93
+ #
94
+ # --------------------------------------------------------------------------
95
+
96
+ # Set the default values of all variables.
97
+ #
98
+ # Directory locations: Fixed for any MPI implementation
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
+ # Default settings for compiler, flags, and libraries
125
+ CXX="icpx"
126
+ CXXFLAGS=""
127
+ LDFLAGS="-ldl"
128
+ MPILIBNAME="mpi"
129
+ MPICXXLIBNAME="mpicxx"
130
+
131
+ # MPIVERSION is the version of the Intel(R) MPI Library that mpiicpc is intended for
132
+ MPIVERSION="2021.14"
133
+
134
+ # Internal variables
135
+ # Show is set to echo to cause the compilation command to be echoed instead
136
+ # of executed.
137
+ Show=
138
+ static_mpi=no
139
+ strip_debug_info=
140
+ handle_executable=
141
+ executable=a.out
142
+ ilp64=no
143
+ no_rpath=no
144
+ # End of initialization of variables
145
+ #
146
+ #---------------------------------------------------------------------
147
+ # Environment Variables.
148
+ # The environment variables I_MPI_CXX, MPICH_CXX may be used to override the
149
+ # default choices. I_MPI_CXX has higher priority than MPICH_CXX.
150
+ # In addition, if there is a file $sysconfdir/mpicxx-$CXXname.conf,
151
+ # where CXXname is the name of the compiler with all spaces replaced by hyphens
152
+ # (e.g., "CC -64" becomes "CC--64", that file is sources, allowing other
153
+ # changes to the compilation environment. See the variables used by the
154
+ # script (defined above)
155
+
156
+ if [ -n "$I_MPI_CXX" ] ; then
157
+ CXX="$I_MPI_CXX"
158
+ CXXname=`echo $CXX | sed 's/ /-/g'`
159
+ if [ -s $sysconfdir/mpicxx-$(basename $CXXname).conf ] ; then
160
+ . $sysconfdir/mpicxx-$(basename $CXXname).conf
161
+ fi
162
+ else
163
+ if [ -n "$MPICH_CXX" ] ; then
164
+ CXX="$MPICH_CXX"
165
+ CXXname=`echo $CXX | sed 's/ /-/g'`
166
+ if [ -s $sysconfdir/mpicxx-$(basename $CXXname).conf ] ; then
167
+ . $sysconfdir/mpicxx-$(basename $CXXname).conf
168
+ fi
169
+ fi
170
+ fi
171
+ if [ -n "$I_MPI_DEBUG_INFO_STRIP" ] ; then
172
+ for comp_val in "0" "off" "no" "disable"
173
+ do
174
+ if [ "$I_MPI_DEBUG_INFO_STRIP" = "$comp_val" ] ; then
175
+ strip_debug_info=no
176
+ break
177
+ fi
178
+ done
179
+ fi
180
+ # Allow a profiling option to be selected through an environment variable
181
+ if [ -n "$MPICXX_PROFILE" ] ; then
182
+ profConf=$MPICXX_PROFILE
183
+ fi
184
+ if [ -n "$I_MPI_CXX_PROFILE" ] ; then
185
+ profConf=$I_MPI_CXX_PROFILE
186
+ fi
187
+
188
+ # Override default mpi library
189
+ if [ -n "$I_MPI_LINK" ] ; then
190
+ mpilib_override=$I_MPI_LINK
191
+ fi
192
+
193
+ #
194
+ # ------------------------------------------------------------------------
195
+ # Argument processing.
196
+ # This is somewhat awkward because of the handling of arguments within
197
+ # the shell. We want to handle arguments that include spaces without
198
+ # loosing the spacing (an alternative would be to use a more powerful
199
+ # scripting language that would allow us to retain the array of values,
200
+ # which the basic (rather than enhanced) Bourne shell does not.
201
+ #
202
+ # Look through the arguments for arguments that indicate compile only.
203
+ # If these are *not* found, add the library options
204
+
205
+ linking=yes
206
+ allargs=""
207
+ for arg in "$@" ; do
208
+ # Set addarg to no if this arg should be ignored by the C compiler
209
+ addarg=yes
210
+ qarg=$arg
211
+ if [ "x$handle_executable" = "xyes" ] ; then
212
+ executable=$arg
213
+ handle_executable=
214
+ fi
215
+ case "$arg" in
216
+ # ----------------------------------------------------------------
217
+ # Compiler options that affect whether we are linking or no
218
+ -c|-S|-E|-M|-MM)
219
+ # The compiler links by default
220
+ linking=no
221
+ ;;
222
+ -o )
223
+ handle_executable=yes
224
+ addarg=yes
225
+ ;;
226
+ # ----------------------------------------------------------------
227
+ # Options that control how we use mpicxx (e.g., -show,
228
+ # -cxx=* -config=*
229
+ -echo)
230
+ addarg=no
231
+ set -x
232
+ ;;
233
+ -cxx=*)
234
+ CXX=$(echo A$arg | sed -e 's/A-cxx=//g')
235
+ if [ "$#" -eq "1" ] ; then
236
+ echo "Error: extra arguments required"
237
+ echo "usage: $(basename $0) -cxx=<name> -v"
238
+ exit 1
239
+ fi
240
+ addarg=no
241
+ ;;
242
+ # Backwards compatibility for MPICH1 - scripts
243
+ -CC=*)
244
+ CXX=$(echo A$arg | sed -e 's/A-CC=//g')
245
+ if [ "$#" -eq "1" ] ; then
246
+ echo "Error: extra arguments required"
247
+ echo "usage: $(basename $0) -CC=<name> -v"
248
+ exit 1
249
+ fi
250
+ addarg=no
251
+ ;;
252
+ -show)
253
+ addarg=no
254
+ Show=echo
255
+ ;;
256
+ -show_env)
257
+ show_env=yes
258
+ ;;
259
+ -config=*)
260
+ addarg=no
261
+ CXXname=$(echo A$arg | sed -e 's/A-config=//g')
262
+ if [ -s "$sysconfdir/mpicxx-$CXXname.conf" ] ; then
263
+ . "$sysconfdir/mpicxx-$CXXname.conf"
264
+ else
265
+ echo "Configuration file mpicxx-$CXXname.conf not found"
266
+ fi
267
+ ;;
268
+ -compile-info|-compile_info)
269
+ # -compile_info included for backward compatibility
270
+ Show=echo
271
+ addarg=no
272
+ ;;
273
+ -link-info|-link_info)
274
+ # -link_info included for backward compatibility
275
+ Show=echo
276
+ addarg=no
277
+ ;;
278
+ -v)
279
+ # Pass this argument to the compiler as well.
280
+ echo "$(basename $0) for the Intel(R) MPI Library $MPIVERSION for Linux*"
281
+ echo "Copyright Intel Corporation."
282
+ linking=no
283
+ ;;
284
+ -V)
285
+ # Pass this argument to the compiler to query the compiler version.
286
+ linking=no
287
+ ;;
288
+ -profile=*)
289
+ # Pass the name of a profiling configuration. As
290
+ # a special case, lib<name>.so or lib<name>.la may be used
291
+ # if the library is in $libdir
292
+ profConf=$(echo A$arg | sed -e 's/A-profile=//g')
293
+ addarg=no
294
+ # Loading the profConf file is handled below
295
+ ;;
296
+ -help)
297
+ # Print mini-help if started without parameters
298
+ echo "Simple script to compile and/or link MPI programs."
299
+ echo "Usage: $(basename $0) [options] <files>"
300
+ echo "----------------------------------------------------------------------------"
301
+ echo "The following options are supported:"
302
+ echo " -cxx=<name> specify a C++ compiler name: i.e. -cxx=icpc"
303
+ echo " -echo print the scripts during their execution"
304
+ echo " -show show command lines without real calling"
305
+ echo " -show_env show environment variables"
306
+ echo " -config=<name> specify a configuration file: i.e. -config=icpc for mpicc-icpc.conf file"
307
+ echo " -v print version info of $(basename $0) and its native compiler"
308
+ echo " -profile=<name> specify a profile configuration file (an MPI profiling"
309
+ echo " library): i.e. -profile=myprofile for the myprofile.cfg file."
310
+ echo " As a special case, lib<name>.so or lib<name>.a may be used"
311
+ echo " if the library is found"
312
+ echo " -check_mpi link against the Intel(R) Trace Collector (-profile=vtmc)."
313
+ echo " -static_mpi link the Intel(R) MPI Library statically"
314
+ echo " -mt_mpi link the thread safe version of the Intel(R) MPI Library"
315
+ echo " -ilp64 link the ILP64 support of the Intel(R) MPI Library"
316
+ echo " -fast the same as -static_mpi + pass -fast option to a compiler"
317
+ echo " -t or -trace"
318
+ echo " link against the Intel(R) Trace Collector"
319
+ echo " -trace-imbalance"
320
+ echo " link against the Intel(R) Trace Collector imbalance library"
321
+ echo " (-profile=vtim)"
322
+ echo " -static use static linkage method"
323
+ echo " -nostrip turn off the debug information stripping during static linking"
324
+ echo " -dynamic_log link against the Intel(R) Trace Collector dynamically"
325
+ echo " -O enable optimization"
326
+ echo " -link_mpi=<name>"
327
+ echo " link against the specified version of the Intel(R) MPI Library"
328
+ echo " i.e -link_mpi=opt|opt_mt|dbg|dbg_mt"
329
+ echo " -norpath disable rpath for compiler wrapper of the Intel(R) MPI Library"
330
+ echo "All other options will be passed to the compiler without changing."
331
+ echo "----------------------------------------------------------------------------"
332
+ echo "The following environment variables are used:"
333
+ echo " I_MPI_ROOT the Intel(R) MPI Library installation directory path"
334
+ echo " I_MPI_CXX or MPICH_CXX"
335
+ echo " the path/name of the underlying compiler to be used"
336
+ echo " I_MPI_CXX_PROFILE or MPICXX_PROFILE"
337
+ echo " the name of profile file (without extension)"
338
+ echo " I_MPI_COMPILER_CONFIG_DIR"
339
+ echo " the folder which contains configuration files *.conf"
340
+ echo " I_MPI_TRACE_PROFILE"
341
+ echo " specify a default profile for the -trace option"
342
+ echo " I_MPI_CHECK_PROFILE"
343
+ echo " specify a default profile for the -check_mpi option"
344
+ echo " I_MPI_LINK specify the version of the Intel(R) MPI Library"
345
+ echo " I_MPI_DEBUG_INFO_STRIP"
346
+ echo " turn on/off the debug information stripping during static linking"
347
+ echo "----------------------------------------------------------------------------"
348
+ exit 0
349
+ ;;
350
+ -nolinkage)
351
+ # This internal option is used by wrapper driver scripts mpicc, mpicxx, mpifc when -v option is used.
352
+ linking=no
353
+ addarg=no
354
+ ;;
355
+ -g)
356
+ MPILIBDIR=${release_lib_dir}
357
+ ;;
358
+ -static_mpi)
359
+ static_mpi=yes
360
+ CXXFLAGS="$CXXFLAGS -Xlinker --export-dynamic"
361
+ addarg=no
362
+ ;;
363
+ -static)
364
+ static_mpi=yes
365
+ CXXFLAGS="$CXXFLAGS -Xlinker --export-dynamic"
366
+ addarg=yes
367
+ ;;
368
+ -mt_mpi)
369
+ addarg=no
370
+ ;;
371
+ -ilp64)
372
+ ilp64=yes
373
+ addarg=no
374
+ ;;
375
+ -check_mpi)
376
+ if [ -z "$profConf" ]; then
377
+ if [ -z "$I_MPI_CHECK_PROFILE" ]; then
378
+ profConf="vtmc"
379
+ else
380
+ profConf="$I_MPI_CHECK_PROFILE"
381
+ fi
382
+ else
383
+ echo "Warning: the -check_mpi option will be ignored because the profile was set."
384
+ fi
385
+ addarg=no
386
+ ;;
387
+ -trace-imbalance)
388
+ if [ -z "$profConf" ]; then
389
+ profConf="vtim"
390
+ else
391
+ echo "Warning: the -trace-imbalance option will be ignored because the profile was set."
392
+ fi
393
+ addarg=no
394
+ ;;
395
+ -t | -trace | -t=* | -trace=* )
396
+ if [ -z "$profConf" ]; then
397
+ if [ -z "$I_MPI_TRACE_PROFILE" ]; then
398
+ profConf="vt"
399
+ else
400
+ profConf="$I_MPI_TRACE_PROFILE"
401
+ fi
402
+ else
403
+ echo "Warning: the -trace option will be ignored because the profile was set."
404
+ fi
405
+ # Disable strip to prevent debug symbols into separate dbg file in case of static linking IMPI-1493
406
+ strip_debug_info=no
407
+ addarg=no
408
+ ;;
409
+ -fast)
410
+ echo "Warning: the -fast option forces static linkage method for the Intel(R) MPI Library."
411
+ static_mpi=yes
412
+ CXXFLAGS="$CXXFLAGS -Xlinker --export-dynamic"
413
+ ;;
414
+ -link_mpi=* )
415
+ mpilib_override=$(echo A$arg | sed -e 's/A-link_mpi=//g')
416
+ addarg=no
417
+ ;;
418
+ -nostrip )
419
+ strip_debug_info=no
420
+ addarg=no
421
+ ;;
422
+ -norpath )
423
+ no_rpath=yes
424
+ addarg=no
425
+ ;;
426
+ # Other arguments. We are careful to handle arguments with
427
+ # quotes (we try to quote all arguments in case they include
428
+ # any spaces)
429
+ *\"*)
430
+ qarg="'$arg'"
431
+ ;;
432
+ *\'*)
433
+ qarg=$(echo \"$arg\")
434
+ ;;
435
+ *)
436
+ qarg="'$arg'"
437
+ ;;
438
+ esac
439
+ if [ $addarg = yes ] ; then
440
+ allargs="$allargs $qarg"
441
+ fi
442
+ done
443
+
444
+ if [ $# -eq 0 ] ; then
445
+ echo "Error: Command line argument is needed!"
446
+ "$0" -help
447
+ exit 1
448
+ fi
449
+
450
+ if [ -n "$mpilib_override" ] ; then
451
+ case "$mpilib_override" in
452
+ opt )
453
+ MPILIBDIR=${release_lib_dir}
454
+ ;;
455
+ opt_mt )
456
+ MPILIBDIR=${release_lib_dir}
457
+ ;;
458
+ dbg )
459
+ MPILIBDIR=${debug_lib_dir}
460
+ ;;
461
+ dbg_mt )
462
+ MPILIBDIR=${debug_lib_dir}
463
+ ;;
464
+ * )
465
+ echo "Warning: incorrect library version specified. Automatically selected library will be used."
466
+ ;;
467
+ esac
468
+ fi
469
+
470
+ if [ "$static_mpi" = yes ] ; then
471
+ mpilibs="${libdir}/libmpifort.a ${libdir}${MPILIBDIR}/lib${MPILIBNAME}.a"
472
+ I_MPI_OTHERLIBS=""
473
+ MPI_OTHERLIBS=" -lrt -lpthread "
474
+ if [ "$ilp64" = yes ]; then
475
+ mpilibs="$libdir/libmpi_ilp64.a $mpilibs"
476
+ fi
477
+
478
+ CXX_BIND_LIB="$libdir/libmpicxx.a"
479
+ if [ "x$strip_debug_info" = "x" ] ; then
480
+ strip_debug_info=yes
481
+ fi
482
+ else
483
+ mpilibs="-lmpifort -l$MPILIBNAME"
484
+ I_MPI_OTHERLIBS=""
485
+ MPI_OTHERLIBS=" -lrt -lpthread "
486
+ if [ "$ilp64" = yes ]; then
487
+ mpilibs="-lmpi_ilp64 $mpilibs"
488
+ fi
489
+
490
+ CXX_BIND_LIB="-lmpicxx"
491
+ fi
492
+ # Derived variables. These are assembled from variables set from the
493
+ # default, environment, configuration file (if any) and command-line
494
+ # options (if any)
495
+
496
+ cxxlibs=
497
+ if [ "$MPICXXLIBNAME" != "$MPILIBNAME" ] ; then
498
+ cxxlibs="$CXX_BIND_LIB"
499
+ fi
500
+ #
501
+ # Handle the case of a profile switch
502
+ if [ -n "$profConf" ] ; then
503
+ profConffile=
504
+ if [ -s "$libdir/lib$profConf.a" ] || [ -s "$libdir/lib$profConf.so" ] ; then
505
+ mpilibs="-l$profConf $mpilibs"
506
+ elif [ -s "$sysconfdir/$profConf.conf" ] ; then
507
+ profConffile="$sysconfdir/$profConf.conf"
508
+ elif [ -s "$profConf.conf" ] ; then
509
+ profConffile="$profConf.conf"
510
+ else
511
+ echo "Profiling configuration file $profConf.conf not found in $sysconfdir"
512
+ fi
513
+ if [ -n "$profConffile" ] && [ -s "$profConffile" ] ; then
514
+ . $profConffile
515
+ if [ -n "$PROFILE_INCPATHS" ] ; then
516
+ CXXFLAGS="$PROFILE_INCPATHS $CXXFLAGS"
517
+ fi
518
+ if [ -n "$PROFILE_PRELIB" ] ; then
519
+ mpilibs="$PROFILE_PRELIB $mpilibs"
520
+ fi
521
+ if [ -n "$PROFILE_POSTLIB" ] ; then
522
+ mpilibs="$mpilibs $PROFILE_POSTLIB"
523
+ fi
524
+ fi
525
+ fi
526
+ # A temporary statement to invoke the compiler
527
+ # Place the -L before any args incase there are any mpi libraries in there.
528
+ # Eventually, we'll want to move this after any non-MPI implementation
529
+ # libraries
530
+
531
+ if [ "${show_env}" = "yes" ]; then
532
+ env | more
533
+ exit 0
534
+ fi
535
+
536
+ if [ "$no_rpath" = "yes" ]; then
537
+ rpath_opt="-Xlinker --enable-new-dtags"
538
+ else
539
+ rpath_opt="-Xlinker --enable-new-dtags -Xlinker -rpath -Xlinker \"${libdir}${MPILIBDIR}\" -Xlinker -rpath -Xlinker \"${libdir}\""
540
+ fi
541
+ if [ "$linking" = yes ] ; then
542
+ cmd_line="$CXX $CXXFLAGS $allargs -I\"${includedir}\" -L\"${libdir}${MPILIBDIR}\" -L\"${libdir}\" $rpath_opt $cxxlibs $mpilibs $I_MPI_OTHERLIBS $LDFLAGS $MPI_OTHERLIBS"
543
+ if [ "$Show" = echo ] ; then
544
+ echo $cmd_line
545
+ else
546
+ eval `echo $cmd_line`
547
+ fi
548
+ rc=$?
549
+ if [ $rc -eq 0 ] && [ "x$strip_debug_info" = "xyes" ] ; then
550
+ $Show objcopy --only-keep-debug ${executable} ${executable}.dbg
551
+ $Show objcopy --strip-debug ${executable}
552
+ $Show objcopy --add-gnu-debuglink=${executable}.dbg ${executable}
553
+ fi
554
+ else
555
+ cmd_line="$CXX $CXXFLAGS $allargs -I\"${includedir}\""
556
+ if [ "$Show" = echo ] ; then
557
+ $Show $cmd_line
558
+ else
559
+ eval `echo $cmd_line`
560
+ fi
561
+ rc=$?
562
+ fi
563
+
564
+ exit $rc
565
+