impi-devel 2021.17.1__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.
Files changed (133) hide show
  1. impi_devel-2021.17.1.data/data/bin/mpicc +81 -0
  2. impi_devel-2021.17.1.data/data/bin/mpicxx +81 -0
  3. impi_devel-2021.17.1.data/data/bin/mpif77 +740 -0
  4. impi_devel-2021.17.1.data/data/bin/mpif90 +884 -0
  5. impi_devel-2021.17.1.data/data/bin/mpifc +81 -0
  6. impi_devel-2021.17.1.data/data/bin/mpigcc +683 -0
  7. impi_devel-2021.17.1.data/data/bin/mpigxx +687 -0
  8. impi_devel-2021.17.1.data/data/bin/mpiicc +42 -0
  9. impi_devel-2021.17.1.data/data/bin/mpiicpc +42 -0
  10. impi_devel-2021.17.1.data/data/bin/mpiicpx +573 -0
  11. impi_devel-2021.17.1.data/data/bin/mpiicx +582 -0
  12. impi_devel-2021.17.1.data/data/bin/mpiifort +46 -0
  13. impi_devel-2021.17.1.data/data/bin/mpiifx +738 -0
  14. impi_devel-2021.17.1.data/data/include/mpi/gfortran/10.2.0/mpi.mod +0 -0
  15. impi_devel-2021.17.1.data/data/include/mpi/gfortran/10.2.0/mpi_base.mod +0 -0
  16. impi_devel-2021.17.1.data/data/include/mpi/gfortran/10.2.0/mpi_constants.mod +0 -0
  17. impi_devel-2021.17.1.data/data/include/mpi/gfortran/10.2.0/mpi_sizeofs.mod +0 -0
  18. impi_devel-2021.17.1.data/data/include/mpi/gfortran/10.2.0/pmpi_base.mod +0 -0
  19. impi_devel-2021.17.1.data/data/include/mpi/gfortran/11.1.0/mpi.mod +0 -0
  20. impi_devel-2021.17.1.data/data/include/mpi/gfortran/11.1.0/mpi_base.mod +0 -0
  21. impi_devel-2021.17.1.data/data/include/mpi/gfortran/11.1.0/mpi_constants.mod +0 -0
  22. impi_devel-2021.17.1.data/data/include/mpi/gfortran/11.1.0/mpi_sizeofs.mod +0 -0
  23. impi_devel-2021.17.1.data/data/include/mpi/gfortran/11.1.0/pmpi_base.mod +0 -0
  24. impi_devel-2021.17.1.data/data/include/mpi/gfortran/12.4.0/mpi.mod +0 -0
  25. impi_devel-2021.17.1.data/data/include/mpi/gfortran/12.4.0/mpi_base.mod +0 -0
  26. impi_devel-2021.17.1.data/data/include/mpi/gfortran/12.4.0/mpi_constants.mod +0 -0
  27. impi_devel-2021.17.1.data/data/include/mpi/gfortran/12.4.0/mpi_sizeofs.mod +0 -0
  28. impi_devel-2021.17.1.data/data/include/mpi/gfortran/12.4.0/pmpi_base.mod +0 -0
  29. impi_devel-2021.17.1.data/data/include/mpi/gfortran/13.3.0/mpi.mod +0 -0
  30. impi_devel-2021.17.1.data/data/include/mpi/gfortran/13.3.0/mpi_base.mod +0 -0
  31. impi_devel-2021.17.1.data/data/include/mpi/gfortran/13.3.0/mpi_constants.mod +0 -0
  32. impi_devel-2021.17.1.data/data/include/mpi/gfortran/13.3.0/mpi_sizeofs.mod +0 -0
  33. impi_devel-2021.17.1.data/data/include/mpi/gfortran/13.3.0/pmpi_base.mod +0 -0
  34. impi_devel-2021.17.1.data/data/include/mpi/gfortran/14.2.0/mpi.mod +0 -0
  35. impi_devel-2021.17.1.data/data/include/mpi/gfortran/14.2.0/mpi_base.mod +0 -0
  36. impi_devel-2021.17.1.data/data/include/mpi/gfortran/14.2.0/mpi_constants.mod +0 -0
  37. impi_devel-2021.17.1.data/data/include/mpi/gfortran/14.2.0/mpi_sizeofs.mod +0 -0
  38. impi_devel-2021.17.1.data/data/include/mpi/gfortran/14.2.0/pmpi_base.mod +0 -0
  39. impi_devel-2021.17.1.data/data/include/mpi/gfortran/15.1.0/mpi.mod +0 -0
  40. impi_devel-2021.17.1.data/data/include/mpi/gfortran/15.1.0/mpi_base.mod +0 -0
  41. impi_devel-2021.17.1.data/data/include/mpi/gfortran/15.1.0/mpi_constants.mod +0 -0
  42. impi_devel-2021.17.1.data/data/include/mpi/gfortran/15.1.0/mpi_sizeofs.mod +0 -0
  43. impi_devel-2021.17.1.data/data/include/mpi/gfortran/15.1.0/pmpi_base.mod +0 -0
  44. impi_devel-2021.17.1.data/data/include/mpi/gfortran/7.1.0/mpi.mod +0 -0
  45. impi_devel-2021.17.1.data/data/include/mpi/gfortran/7.1.0/mpi_base.mod +0 -0
  46. impi_devel-2021.17.1.data/data/include/mpi/gfortran/7.1.0/mpi_constants.mod +0 -0
  47. impi_devel-2021.17.1.data/data/include/mpi/gfortran/7.1.0/mpi_sizeofs.mod +0 -0
  48. impi_devel-2021.17.1.data/data/include/mpi/gfortran/7.1.0/pmpi_base.mod +0 -0
  49. impi_devel-2021.17.1.data/data/include/mpi/gfortran/8.2.0/mpi.mod +0 -0
  50. impi_devel-2021.17.1.data/data/include/mpi/gfortran/8.2.0/mpi_base.mod +0 -0
  51. impi_devel-2021.17.1.data/data/include/mpi/gfortran/8.2.0/mpi_constants.mod +0 -0
  52. impi_devel-2021.17.1.data/data/include/mpi/gfortran/8.2.0/mpi_sizeofs.mod +0 -0
  53. impi_devel-2021.17.1.data/data/include/mpi/gfortran/8.2.0/pmpi_base.mod +0 -0
  54. impi_devel-2021.17.1.data/data/include/mpi/gfortran/9.1.0/mpi.mod +0 -0
  55. impi_devel-2021.17.1.data/data/include/mpi/gfortran/9.1.0/mpi_base.mod +0 -0
  56. impi_devel-2021.17.1.data/data/include/mpi/gfortran/9.1.0/mpi_constants.mod +0 -0
  57. impi_devel-2021.17.1.data/data/include/mpi/gfortran/9.1.0/mpi_sizeofs.mod +0 -0
  58. impi_devel-2021.17.1.data/data/include/mpi/gfortran/9.1.0/pmpi_base.mod +0 -0
  59. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/10.2.0/mpi.mod +0 -0
  60. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/10.2.0/mpi_base.mod +0 -0
  61. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/10.2.0/mpi_constants.mod +0 -0
  62. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/10.2.0/mpi_sizeofs.mod +0 -0
  63. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/10.2.0/pmpi_base.mod +0 -0
  64. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/11.1.0/mpi.mod +0 -0
  65. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/11.1.0/mpi_base.mod +0 -0
  66. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/11.1.0/mpi_constants.mod +0 -0
  67. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/11.1.0/mpi_sizeofs.mod +0 -0
  68. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/11.1.0/pmpi_base.mod +0 -0
  69. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/12.4.0/mpi.mod +0 -0
  70. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/12.4.0/mpi_base.mod +0 -0
  71. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/12.4.0/mpi_constants.mod +0 -0
  72. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/12.4.0/mpi_sizeofs.mod +0 -0
  73. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/12.4.0/pmpi_base.mod +0 -0
  74. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/13.3.0/mpi.mod +0 -0
  75. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/13.3.0/mpi_base.mod +0 -0
  76. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/13.3.0/mpi_constants.mod +0 -0
  77. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/13.3.0/mpi_sizeofs.mod +0 -0
  78. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/13.3.0/pmpi_base.mod +0 -0
  79. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/14.2.0/mpi.mod +0 -0
  80. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/14.2.0/mpi_base.mod +0 -0
  81. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/14.2.0/mpi_constants.mod +0 -0
  82. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/14.2.0/mpi_sizeofs.mod +0 -0
  83. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/14.2.0/pmpi_base.mod +0 -0
  84. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/15.1.0/mpi.mod +0 -0
  85. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/15.1.0/mpi_base.mod +0 -0
  86. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/15.1.0/mpi_constants.mod +0 -0
  87. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/15.1.0/mpi_sizeofs.mod +0 -0
  88. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/15.1.0/pmpi_base.mod +0 -0
  89. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/7.1.0/mpi.mod +0 -0
  90. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/7.1.0/mpi_base.mod +0 -0
  91. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/7.1.0/mpi_constants.mod +0 -0
  92. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/7.1.0/mpi_sizeofs.mod +0 -0
  93. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/7.1.0/pmpi_base.mod +0 -0
  94. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/8.2.0/mpi.mod +0 -0
  95. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/8.2.0/mpi_base.mod +0 -0
  96. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/8.2.0/mpi_constants.mod +0 -0
  97. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/8.2.0/mpi_sizeofs.mod +0 -0
  98. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/8.2.0/pmpi_base.mod +0 -0
  99. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/9.1.0/mpi.mod +0 -0
  100. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/9.1.0/mpi_base.mod +0 -0
  101. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/9.1.0/mpi_constants.mod +0 -0
  102. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/9.1.0/mpi_sizeofs.mod +0 -0
  103. impi_devel-2021.17.1.data/data/include/mpi/ilp64/gfortran/9.1.0/pmpi_base.mod +0 -0
  104. impi_devel-2021.17.1.data/data/include/mpi/ilp64/mpi.mod +0 -0
  105. impi_devel-2021.17.1.data/data/include/mpi/ilp64/mpi_base.mod +0 -0
  106. impi_devel-2021.17.1.data/data/include/mpi/ilp64/mpi_constants.mod +0 -0
  107. impi_devel-2021.17.1.data/data/include/mpi/ilp64/mpi_sizeofs.mod +0 -0
  108. impi_devel-2021.17.1.data/data/include/mpi/ilp64/pmpi_base.mod +0 -0
  109. impi_devel-2021.17.1.data/data/include/mpi/mpi.mod +0 -0
  110. impi_devel-2021.17.1.data/data/include/mpi/mpi_base.mod +0 -0
  111. impi_devel-2021.17.1.data/data/include/mpi/mpi_constants.mod +0 -0
  112. impi_devel-2021.17.1.data/data/include/mpi/mpi_f08.mod +0 -0
  113. impi_devel-2021.17.1.data/data/include/mpi/mpi_f08_callbacks.mod +0 -0
  114. impi_devel-2021.17.1.data/data/include/mpi/mpi_f08_compile_constants.mod +0 -0
  115. impi_devel-2021.17.1.data/data/include/mpi/mpi_f08_link_constants.mod +0 -0
  116. impi_devel-2021.17.1.data/data/include/mpi/mpi_f08_types.mod +0 -0
  117. impi_devel-2021.17.1.data/data/include/mpi/mpi_sizeofs.mod +0 -0
  118. impi_devel-2021.17.1.data/data/include/mpi/pmpi_base.mod +0 -0
  119. impi_devel-2021.17.1.data/data/include/mpi/pmpi_f08.mod +0 -0
  120. impi_devel-2021.17.1.data/data/include/mpi.h +4224 -0
  121. impi_devel-2021.17.1.data/data/include/mpi_abi.h +2057 -0
  122. impi_devel-2021.17.1.data/data/include/mpicxx.h +2796 -0
  123. impi_devel-2021.17.1.data/data/include/mpif.h +651 -0
  124. impi_devel-2021.17.1.data/data/include/mpio.h +767 -0
  125. impi_devel-2021.17.1.data/data/include/mpiof.h +113 -0
  126. impi_devel-2021.17.1.data/data/opt/mpi/bin/mpiptx +0 -0
  127. impi_devel-2021.17.1.data/data/share/doc/mpi/licensing/license.txt +72 -0
  128. impi_devel-2021.17.1.data/data/share/doc/mpi/licensing/third-party-programs.txt +1476 -0
  129. impi_devel-2021.17.1.dist-info/LICENSE.txt +25 -0
  130. impi_devel-2021.17.1.dist-info/METADATA +23 -0
  131. impi_devel-2021.17.1.dist-info/RECORD +133 -0
  132. impi_devel-2021.17.1.dist-info/WHEEL +6 -0
  133. impi_devel-2021.17.1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,683 @@
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
+ ## Copyright (C) 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
+
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* mpich
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
+ # WRAPPER_LIBS - Any special libraries needed in order to link
84
+ #
85
+ # We assume that (a) the C compiler can both compile and link programs
86
+ #
87
+ # Handling of command-line options:
88
+ # This is a little tricky because some options may contain blanks.
89
+ #
90
+ # Special issues with shared libraries - todo
91
+ #
92
+ # --------------------------------------------------------------------------
93
+ # Set the default values of all variables.
94
+ #
95
+ # Directory locations: Fixed for any MPI implementation.
96
+ # Set from the directory arguments to configure (e.g., --prefix=/usr/local)
97
+ prefix=I_MPI_SUBSTITUTE_INSTALLDIR
98
+ # The environment variable I_MPI_ROOT may be used to override installation folder path
99
+ if [ -n "${I_MPI_ROOT}" ] ; then
100
+ prefix="${I_MPI_ROOT}";
101
+ fi
102
+
103
+ exec_prefix=__EXEC_PREFIX_TO_BE_FILLED_AT_INSTALL_TIME__
104
+ sysconfdir=${prefix}/etc
105
+ includedir=${prefix}/include
106
+ libdir=${prefix}/lib
107
+
108
+ if [ ! -f "${prefix}/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
+ # The environment variable I_MPI_COMPILER_CONFIG_DIR may be used to override
118
+ # folder where *.conf files are placed
119
+ if [ -n "$I_MPI_COMPILER_CONFIG_DIR" ] ; then
120
+ sysconfdir=$I_MPI_COMPILER_CONFIG_DIR;
121
+ fi
122
+ # Default settings for compiler, flags, and libraries.
123
+ # Determined by a combination of environment variables and tests within
124
+ # configure (e.g., determining whehter -lsocket is needee)
125
+ CC="gcc"
126
+ MPICH_VERSION="3.4a2"
127
+ CFLAGS=""
128
+ CPPFLAGS=""
129
+ MPIVERSION="2021.17"
130
+ MPILIBNAME="mpi"
131
+
132
+
133
+ # How to pass a linker flag through the compiler.
134
+ wl="-Wl,"
135
+
136
+ # Static library suffix (normally "a").
137
+ libext="a"
138
+
139
+ # Shared library suffix (normally "so").
140
+ shlibext="so"
141
+
142
+ # Format of library name prefix.
143
+ libname_spec="lib\$name"
144
+
145
+ # Library names that the linker finds when passed -lNAME.
146
+ library_names_spec="\$libname\$shrext"
147
+
148
+ # Flag to hardcode $libdir into a binary during linking.
149
+ # This must work even if $libdir does not exist.
150
+ hardcode_libdir_flag_spec="\${wl}-rpath \${wl}\$libdir"
151
+
152
+ # Flag to add dtags to allow using runpath instead of rpath
153
+ enable_dtags_flag="-Wl,--enable-new-dtags"
154
+ disable_dtags_flag="-Wl,--disable-new-dtags"
155
+
156
+ # Whether we need a single -rpath flag with a separated argument.
157
+ hardcode_libdir_separator=""
158
+
159
+ # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
160
+ # resulting binary.
161
+ hardcode_direct="no"
162
+
163
+ # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
164
+ # resulting binary.
165
+ hardcode_minus_L="no"
166
+
167
+
168
+ strip_debug_info=
169
+ handle_executable=
170
+ fortran_binding=
171
+ executable=a.out
172
+ static_log=yes
173
+ ilp64=no
174
+ trace_opt=no
175
+ no_rpath=no
176
+ mpi_abi=no
177
+ # Attempt to construct dynamic loading info, based on the user
178
+ # preference of rpath, runpath or none and on the detected libdir
179
+ # flags.
180
+ with_wrapper_dl_type=no
181
+ if test "X${with_wrapper_dl_type}" = "Xrunpath" ; then
182
+ eval wrapper_dl_type_flags=\"${hardcode_libdir_flag_spec} ${enable_dtags_flag}\"
183
+ elif test "X${with_wrapper_dl_type}" = "Xrpath" ; then
184
+ eval wrapper_dl_type_flags=\"${hardcode_libdir_flag_spec} ${disable_dtags_flag}\"
185
+ else
186
+ wrapper_dl_type_flags=""
187
+ fi
188
+
189
+ # Internal variables
190
+ # Show is set to echo to cause the compilation command to be echoed instead
191
+ # of executed.
192
+ Show=eval
193
+ #
194
+ # End of initialization of variables
195
+ #---------------------------------------------------------------------
196
+ # Environment Variables.
197
+ ## The environment variables I_MPI_CC, MPICH_CC may be used to override the
198
+ # default choices. I_MPI_CC has higher priority than MPICH_CC.
199
+ # In addition, if there is a file $sysconfdir/mpicc-$CCname.conf,
200
+ # where CCname is the name of the compiler with all spaces replaced by hyphens
201
+ # (e.g., "cc -64" becomes "cc--64", that file is sources, allowing other
202
+ # changes to the compilation environment. See the variables used by the
203
+ # script (defined above)
204
+ # Added MPICH_CC_OLD, MPICH_CC can be used to prefix CC with external utility,
205
+ # e.g. setenv MPICH_CC 'eval linkcache $MPICH_CC_OLD'
206
+ if [ -n "$I_MPI_CFLAGS" ] ; then
207
+ CFLAGS=" "$I_MPI_CFLAGS
208
+ fi
209
+ if [ -n "$I_MPI_LDFLAGS" ] ; then
210
+ LDFLAGS=" -ldl "$I_MPI_LDFLAGS
211
+ fi
212
+ if [ -n "$I_MPI_CC" ] ; then
213
+ CC="$I_MPI_CC"
214
+
215
+ CCname=`echo $CC | sed 's/ /-/g'`
216
+ if [ -s $sysconfdir/mpicc-$(basename $CCname).conf ] ; then
217
+ . $sysconfdir/mpicc-$(basename $CCname).conf
218
+ fi
219
+ else
220
+ if [ -n "$MPICH_CC" ] ; then
221
+ CC="$MPICH_CC"
222
+ CCname=`echo $CC | sed 's/ /-/g'`
223
+ if [ -s $sysconfdir/mpicc-$(basename $CCname).conf ] ; then
224
+ . $sysconfdir/mpicc-$(basename $CCname).conf
225
+ fi
226
+ fi
227
+ fi
228
+ if [ -n "$I_MPI_DEBUG_INFO_STRIP" ] ; then
229
+ for comp_val in "0" "off" "no" "disable"
230
+ do
231
+ if [ "$I_MPI_DEBUG_INFO_STRIP" = "$comp_val" ] ; then
232
+ strip_debug_info=no
233
+ break
234
+ fi
235
+ done
236
+ fi
237
+ if [ -n "$I_MPI_FORT_BIND" ] ; then
238
+ for comp_val in "0" "off" "no" "disable"
239
+ do
240
+ if [ "$I_MPI_FORT_BIND" = "$comp_val" ] ; then
241
+ fortran_binding=no
242
+ break
243
+ fi
244
+ done
245
+ fi
246
+ # Allow a profiling option to be selected through an environment variable
247
+ if [ -n "$MPICC_PROFILE" ] ; then
248
+ profConf=$MPICC_PROFILE
249
+ fi
250
+ if [ -n "$I_MPI_CC_PROFILE" ] ; then
251
+ profConf=$I_MPI_CC_PROFILE
252
+ fi
253
+
254
+ # Override default mpi library
255
+ if [ -n "$I_MPI_LINK" ] ; then
256
+ mpilib_override=$I_MPI_LINK
257
+ fi
258
+
259
+ #
260
+ # ------------------------------------------------------------------------
261
+ # Argument processing.
262
+ # This is somewhat awkward because of the handling of arguments within
263
+ # the shell. We want to handle arguments that include spaces without
264
+ # loosing the spacing (an alternative would be to use a more powerful
265
+ # scripting language that would allow us to retain the array of values,
266
+ # which the basic (rather than enhanced) Bourne shell does not.
267
+ #
268
+ # Look through the arguments for arguments that indicate compile only.
269
+ # If these are *not* found, add the library options
270
+
271
+ linking=yes
272
+ allargs=""
273
+ argno=0
274
+ interlib_deps=yes
275
+ static_mpi=no
276
+ for arg in "$@" ; do
277
+ # Set addarg to no if this arg should be ignored by the C compiler
278
+ addarg=yes
279
+ qarg=$arg
280
+ if [ "x$handle_executable" = "xyes" ] ; then
281
+ executable=$arg
282
+ handle_executable=
283
+ fi
284
+ case "$arg" in
285
+
286
+ # ----------------------------------------------------------------
287
+ # Compiler options that affect whether we are linking or no
288
+ -c|-S|-E|-M|-MM)
289
+ # The compiler links by default
290
+ linking=no
291
+ ;;
292
+ -o )
293
+ handle_executable=yes
294
+ addarg=yes
295
+ ;;
296
+ # ----------------------------------------------------------------
297
+ # Options that control how we use mpicc (e.g., -show,
298
+ # -cc=* -config=*
299
+ -static)
300
+ CFLAGS="$CFLAGS -Xlinker --export-dynamic"
301
+ static_mpi=yes
302
+ addarg=no
303
+ interlib_deps=no
304
+ ;;
305
+ -static-mpi)
306
+ interlib_deps=no
307
+ static_mpi=yes
308
+ addarg=no
309
+ CFLAGS="$CFLAGS -Xlinker --export-dynamic"
310
+ ;;
311
+ -echo)
312
+ addarg=no
313
+ set -x
314
+ ;;
315
+ -cc=*)
316
+ CC=`echo A$arg | sed -e 's/A-cc=//g'`
317
+ addarg=no
318
+ ;;
319
+ -show)
320
+ addarg=no
321
+ Show=echo
322
+ ;;
323
+ -config=*)
324
+ addarg=no
325
+ CCname=`echo A$arg | sed -e 's/A-config=//g'`
326
+ if [ -s "$sysconfdir/mpicc-$CCname.conf" ] ; then
327
+ . "$sysconfdir/mpicc-$CCname.conf"
328
+ else
329
+ echo "Configuration file mpicc-$CCname.conf not found"
330
+ fi
331
+ ;;
332
+ -compile-info|-compile_info)
333
+ # -compile_info included for backward compatibility
334
+ Show=echo
335
+ addarg=no
336
+ ;;
337
+ -link-info|-link_info)
338
+ # -link_info included for backward compatibility
339
+ Show=echo
340
+ addarg=no
341
+ ;;
342
+ -v)
343
+ # Pass this argument to the compiler as well.
344
+ echo "$(basename $0) for the Intel(R) MPI Library $MPIVERSION for Linux*"
345
+ echo "Copyright Intel Corporation."
346
+ # if there is only 1 argument, it must be -v.
347
+ if [ "$#" -eq "1" ] ; then
348
+ linking=no
349
+ fi
350
+ ;;
351
+ -profile=*)
352
+ # Pass the name of a profiling configuration. As
353
+ # a special case, lib<name>.so or lib<name>.la may be used
354
+ # if the library is in $libdir
355
+ profConf=`echo A$arg | sed -e 's/A-profile=//g'`
356
+ addarg=no
357
+ # Loading the profConf file is handled below
358
+ ;;
359
+ -mpi-abi|-mpi_abi)
360
+ mpi_abi=yes
361
+ addarg=no
362
+ ;;
363
+ -help)
364
+ # Print mini-help if started without parameters
365
+ echo "Simple script to compile and/or link MPI programs."
366
+ echo "Usage: `basename $0` [options] <files>"
367
+ echo "----------------------------------------------------------------------------"
368
+ echo "The following options are supported:"
369
+ echo " -cc=<name> specify a C compiler name: i.e. -cc=gcc"
370
+ echo " -echo print the scripts during their execution"
371
+ echo " -show show command lines without real calling"
372
+ echo " -config=<name> specify a configuration file: i.e. -config=gcc for mpicc-gcc.conf file"
373
+ echo " -v print version info of $(basename $0) and its native compiler"
374
+ echo " -profile=<name> specify a profile configuration file (an MPI profiling"
375
+ echo " library): i.e. -profile=myprofile for the myprofile.cfg file."
376
+ echo " As a special case, lib<name>.so or lib<name>.a may be used"
377
+ echo " if the library is found"
378
+ echo " -check_mpi link against the Intel(R) Trace Collector (-profile=vtmc)."
379
+ echo " -static_mpi link the Intel(R) MPI Library statically"
380
+ echo " -mt_mpi link the thread safe version of the Intel(R) MPI Library"
381
+ echo " -ilp64 link the ILP64 support of the Intel(R) MPI Library"
382
+ echo " -t or -trace"
383
+ echo " link against the Intel(R) Trace Collector"
384
+ echo " -trace-imbalance"
385
+ echo " link against the Intel(R) Trace Collector imbalance library"
386
+ echo " (-profile=vtim)"
387
+ echo " -dynamic_log link against the Intel(R) Trace Collector dynamically"
388
+ echo " -static use static linkage method"
389
+ echo " -nostrip turn off the debug information stripping during static linking"
390
+ echo " -nofortran or -nofortbind"
391
+ echo " disable the linkage Fortran bindings"
392
+ echo " -O enable optimization"
393
+ echo " -link_mpi=<name>"
394
+ echo " link against the specified version of the Intel(R) MPI Library"
395
+ echo " i.e -link_mpi=opt|opt_mt|dbg|dbg_mt"
396
+ echo " -norpath disable rpath for compiler wrapper of the Intel(R) MPI Library"
397
+ echo " -mpi-abi Compile and link using the standard MPI-5.0 ABI."
398
+ echo "All other options will be passed to the compiler without changing."
399
+ echo "----------------------------------------------------------------------------"
400
+ echo "The following environment variables are used:"
401
+ echo " I_MPI_ROOT the Intel(R) MPI Library installation directory path"
402
+ echo " I_MPI_CC or MPICH_CC"
403
+ echo " the path/name of the underlying compiler to be used"
404
+ echo " I_MPI_CC_PROFILE or MPICC_PROFILE"
405
+ echo " the name of profile file (without extension)"
406
+ echo " I_MPI_COMPILER_CONFIG_DIR"
407
+ echo " the folder which contains configuration files *.conf"
408
+ echo " I_MPI_TRACE_PROFILE"
409
+ echo " specify a default profile for the -trace option"
410
+ echo " I_MPI_CHECK_PROFILE"
411
+ echo " specify a default profile for the -check_mpi option"
412
+ echo " I_MPI_LINK specify the version of the Intel(R) MPI Library"
413
+ echo " I_MPI_DEBUG_INFO_STRIP"
414
+ echo " turn on/off the debug information stripping during static linking"
415
+ echo " I_MPI_CFLAGS"
416
+ echo " special flags needed for compilation"
417
+ echo " I_MPI_LDFLAGS "
418
+ echo " special flags needed for linking"
419
+ echo " I_MPI_FORT_BIND"
420
+ echo " disable the linkage Fortran bindings"
421
+ echo "----------------------------------------------------------------------------"
422
+ exit 0
423
+ ;;
424
+ -nolinkage)
425
+ # This internal option is used by wrapper driver scripts mpicc, mpicxx, mpifc when -v option is used.
426
+ linking=no
427
+ addarg=no
428
+ ;;
429
+ -g)
430
+ MPILIBDIR=${release_lib_dir}
431
+ ;;
432
+ -static_log)
433
+ static_log=yes
434
+ addarg=no
435
+ ;;
436
+ -dynamic_log)
437
+ static_log=no
438
+ addarg=no
439
+ ;;
440
+ -mt_mpi)
441
+ addarg=no
442
+ ;;
443
+ -ilp64)
444
+ ilp64=yes
445
+ addarg=no
446
+ ;;
447
+ -check_mpi)
448
+ if [ -z "$profConf" ]; then
449
+ if [ -z "$I_MPI_CHECK_PROFILE" ]; then
450
+ profConf="vtmc"
451
+ else
452
+ profConf="$I_MPI_CHECK_PROFILE"
453
+ fi
454
+ else
455
+ echo "Warning: the -check_mpi option will be ignored because the profile was set."
456
+ fi
457
+ addarg=no
458
+ ;;
459
+ -trace-imbalance)
460
+ if [ -z "$profConf" ]; then
461
+ profConf="vtim"
462
+ else
463
+ echo "Warning: the -trace-imbalance option will be ignored because the profile was set."
464
+ fi
465
+ addarg=no
466
+ ;;
467
+ -t | -trace | -t=* | -trace=* )
468
+ if [ -z "$profConf" ]; then
469
+ if [ -z "$I_MPI_TRACE_PROFILE" ]; then
470
+ profConf="vt"
471
+ else
472
+ profConf="$I_MPI_TRACE_PROFILE"
473
+ fi
474
+ else
475
+ echo "Warning: the -trace option will be ignored because the profile was set."
476
+ fi
477
+ addarg=no
478
+ ;;
479
+ -nativelinking)
480
+ # Internal option to use native compiler for linking without MPI libraries
481
+ nativelinking=yes
482
+ addarg=no
483
+ ;;
484
+ -link_mpi=* )
485
+ mpilib_override=`echo A$arg | sed -e 's/A-link_mpi=//g'`
486
+ addarg=no
487
+ ;;
488
+ -mmic )
489
+ addarg=no
490
+ ;;
491
+ -nostrip )
492
+ strip_debug_info=no
493
+ addarg=no
494
+ ;;
495
+ -nofortran | -nofortbind)
496
+ fortran_binding=no
497
+ ;;
498
+ -norpath )
499
+ no_rpath=yes
500
+ addarg=no
501
+ ;;
502
+ # Other arguments. We are careful to handle arguments with
503
+ # quotes (we try to quote all arguments in case they include
504
+ # any spaces)
505
+ *\"*)
506
+ qarg="'"$arg"'"
507
+ ;;
508
+ *\'*)
509
+ qarg=`echo \"$arg\"`
510
+ ;;
511
+ *)
512
+ qarg="'$arg'"
513
+ ;;
514
+ esac
515
+ if [ $addarg = yes ] ; then
516
+ allargs="$allargs $qarg"
517
+ fi
518
+ done
519
+
520
+ if [ $# -eq 0 ] ; then
521
+ echo "Error: Command line argument is needed!"
522
+ "$0" -help
523
+ exit 1
524
+ fi
525
+
526
+ if [ -n "$mpilib_override" ] ; then
527
+ case "$mpilib_override" in
528
+ opt )
529
+ MPILIBDIR=${release_lib_dir}
530
+ ;;
531
+ opt_mt )
532
+ MPILIBDIR=${release_lib_dir}
533
+ ;;
534
+ dbg )
535
+ MPILIBDIR=${debug_lib_dir}
536
+ ;;
537
+ dbg_mt )
538
+ MPILIBDIR=${debug_lib_dir}
539
+ ;;
540
+ * )
541
+ echo "Warning: incorrect library version specified. Automatically selected library will be used."
542
+ ;;
543
+ esac
544
+ fi
545
+ # -----------------------------------------------------------------------
546
+
547
+ abi_cflags=
548
+ if [ "$mpi_abi" = yes ] ; then
549
+ abi_cflags="-DMPI_ABI"
550
+ MPILIBNAME=mpi_abi
551
+ fortran_binding=no
552
+
553
+ if [ "$static_mpi" = yes ] ; then
554
+ echo "Error: the -mpi_abi option is not supported for static build."
555
+ exit 1
556
+ fi
557
+ if [ "$ilp64" = yes ]; then
558
+ echo "Error: the -mpi_abi option is not supported for ILP64 build."
559
+ exit 1
560
+ fi
561
+ fi
562
+
563
+ if [ "$static_mpi" = yes ] ; then
564
+ if [ "x$fortran_binding" = "x" ]; then
565
+ mpilibs="${libdir}/libmpifort.a ${libdir}${MPILIBDIR}/lib${MPILIBNAME}.a"
566
+ else
567
+ mpilibs="${libdir}${MPILIBDIR}/lib${MPILIBNAME}.a"
568
+ fi
569
+ I_MPI_OTHERLIBS=" -lrt -lpthread "
570
+ if [ "$ilp64" = yes ]; then
571
+ mpilibs="$libdir/libmpi_ilp64.a $mpilibs"
572
+ fi
573
+ if [ "x$strip_debug_info" = "x" ] ; then
574
+ strip_debug_info=yes
575
+ fi
576
+ else
577
+ if [ "x$fortran_binding" = "x" ]; then
578
+ mpilibs="-lmpifort -l$MPILIBNAME"
579
+ else
580
+ mpilibs="-l$MPILIBNAME"
581
+ fi
582
+ I_MPI_OTHERLIBS=" -lrt -lpthread "
583
+ if [ "$ilp64" = yes ]; then
584
+ mpilibs="-lmpi_ilp64 $mpilibs"
585
+ fi
586
+ fi
587
+
588
+ # -----------------------------------------------------------------------
589
+ # Derived variables. These are assembled from variables set from the
590
+ # default, environment, configuration file (if any) and command-line
591
+ # options (if any)
592
+
593
+ PROFILE_FOO=
594
+ # Handle the case of a profile switch
595
+ if [ -n "$profConf" ] ; then
596
+ profConffile=
597
+ if [ -s "$libdir/lib$profConf.a" -o -s "$libdir/lib$profConf.so" ] ; then
598
+ PROFILE_FOO="-l$profConf"
599
+ mpilibs="-l$profConf $mpilibs"
600
+ elif [ -s "$sysconfdir/$profConf.conf" ] ; then
601
+ profConffile="$sysconfdir/$profConf.conf"
602
+ elif [ -s "$profConf.conf" ] ; then
603
+ profConffile="$profConf.conf"
604
+ else
605
+ echo "Profiling configuration file $profConf.conf not found in $sysconfdir"
606
+ fi
607
+ if [ -n "$profConffile" -a -s "$profConffile" ] ; then
608
+ . $profConffile
609
+ if [ -n "$PROFILE_INCPATHS" ] ; then
610
+ CFLAGS="$PROFILE_INCPATHS $CFLAGS"
611
+ fi
612
+ if [ -n "$PROFILE_PRELIB" ] ; then
613
+ mpilibs="$PROFILE_PRELIB $mpilibs"
614
+ fi
615
+ if [ -n "$PROFILE_POSTLIB" ] ; then
616
+ mpilibs="$mpilibs $PROFILE_POSTLIB"
617
+ fi
618
+ fi
619
+ fi
620
+ final_cflags=" "
621
+ if [ "${static_mpi}" = "yes" ] ; then
622
+ final_cflags=" -Xlinker --export-dynamic "
623
+ else
624
+ final_cflags=" ${abi_cflags}"
625
+ fi
626
+ final_cppflags=" "
627
+ final_ldflags=" -Wl,-z,now -Wl,-z,relro -Wl,-z,noexecstack -Xlinker --enable-new-dtags -ldl "
628
+ final_libs="-lpthread -lrt "
629
+
630
+ # -----------------------------------------------------------------------
631
+ #
632
+ # A temporary statement to invoke the compiler
633
+ # Place the -L before any args incase there are any mpi libraries in there.
634
+ # Eventually, we'll want to move this after any non-MPI implementation
635
+ # libraries.
636
+ # We use a single invocation of the compiler. This will be adequate until
637
+ # we run into a system that uses a separate linking command. With any luck,
638
+ # such archaic systems are no longer with us. This also lets us
639
+ # accept any argument; we don't need to know if we've seen a source
640
+ # file or an object file. Instead, we just check for an option that
641
+ # suppressing linking, such as -c or -M.
642
+ if [ "$no_rpath" = "yes" ]; then
643
+ rpath_opt="-Xlinker --enable-new-dtags"
644
+ else
645
+ rpath_opt="-Xlinker --enable-new-dtags -Xlinker -rpath -Xlinker \"${libdir}${MPILIBDIR}\" -Xlinker -rpath -Xlinker \"${libdir}\""
646
+ fi
647
+
648
+ if [ "$linking" = yes ] ; then
649
+ if [ "$nativelinking" = yes ] ; then
650
+ $Show $CC ${final_cppflags} $PROFILE_INCPATHS ${final_cflags} ${final_ldflags} $allargs -I\"${includedir}\"
651
+ rc=$?
652
+ else
653
+ $Show $CC $CPPFLAGS $CFLAGS ${abi_cflags} $allargs -I\"${includedir}\" -L\"${libdir}${MPILIBDIR}\" -L\"${libdir}\" $rpath_opt $mpilibs $I_MPI_OTHERLIBS ${final_ldflags}
654
+ rc=$?
655
+
656
+ if [ $rc -eq 0 -a "x$strip_debug_info" = "xyes" ] ; then
657
+ $Show objcopy --only-keep-debug ${executable} ${executable}.dbg
658
+ $Show objcopy --strip-debug ${executable}
659
+ $Show objcopy --add-gnu-debuglink=${executable}.dbg ${executable}
660
+ fi
661
+ # if [ "$static_mpi" = no ] ; then
662
+ # $Show $CC ${final_cppflags} $PROFILE_INCPATHS ${final_cflags} ${final_ldflags} "${allargs[@]}" -I$includedir -L$libdir $PROFILE_PRELIB $PROFILE_FOO ${wrapper_dl_type_flags} -lmpi $PROFILE_POSTLIB ${final_libs}
663
+ # else
664
+ # $Show $CC ${final_cppflags} $PROFILE_INCPATHS ${final_cflags} ${final_ldflags} "${allargs[@]}" -I$includedir -L$libdir $PROFILE_PRELIB $PROFILE_FOO ${wrapper_dl_type_flags} $libdir/libmpi.a $PROFILE_POSTLIB ${final_libs}
665
+ # fi
666
+ # rc=$?
667
+ # if [ $rc -eq 0 -a "x$strip_debug_info" = "xyes" ] ; then
668
+ # $Show objcopy --only-keep-debug ${executable} ${executable}.dbg
669
+ # $Show objcopy --strip-debug ${executable}
670
+ # $Show objcopy --add-gnu-debuglink=${executable}.dbg ${executable}
671
+ # fi
672
+ fi
673
+ else
674
+ cmd_line="$CC $CPPFLAGS $CFLAGS ${abi_cflags} $allargs -I\"${includedir}\""
675
+ if [ "$Show" = echo ] ; then
676
+ echo $cmd_line
677
+ else
678
+ eval `echo $cmd_line`
679
+ fi
680
+ rc=$?
681
+ fi
682
+
683
+ exit $rc