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