impi-devel 2021.9.0__py2.py3-none-win_amd64.whl → 2021.14.1__py2.py3-none-win_amd64.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 (29) hide show
  1. impi_devel-2021.14.1.data/data/Library/bin/mpi/debug/impi.dll +0 -0
  2. {impi_devel-2021.9.0.data → impi_devel-2021.14.1.data}/data/Library/bin/mpicc.bat +91 -42
  3. {impi_devel-2021.9.0.data → impi_devel-2021.14.1.data}/data/Library/bin/mpicl.bat +2 -2
  4. {impi_devel-2021.9.0.data → impi_devel-2021.14.1.data}/data/Library/bin/mpicxx.bat +1 -2
  5. {impi_devel-2021.9.0.data → impi_devel-2021.14.1.data}/data/Library/bin/mpif77.bat +2 -2
  6. {impi_devel-2021.9.0.data → impi_devel-2021.14.1.data}/data/Library/bin/mpif90.bat +2 -2
  7. {impi_devel-2021.9.0.data → impi_devel-2021.14.1.data}/data/Library/bin/mpifc.bat +49 -38
  8. {impi_devel-2021.9.0.data → impi_devel-2021.14.1.data}/data/Library/bin/mpiicc.bat +2 -2
  9. {impi_devel-2021.9.0.data → impi_devel-2021.14.1.data}/data/Library/bin/mpiicpc.bat +2 -2
  10. impi_devel-2021.14.1.data/data/Library/bin/mpiicpx.bat +24 -0
  11. impi_devel-2021.14.1.data/data/Library/bin/mpiicx.bat +24 -0
  12. {impi_devel-2021.9.0.data → impi_devel-2021.14.1.data}/data/Library/bin/mpiifort.bat +2 -2
  13. impi_devel-2021.14.1.data/data/Library/bin/mpiifx.bat +24 -0
  14. {impi_devel-2021.9.0.data → impi_devel-2021.14.1.data}/data/Library/include/mpi.h +2150 -1095
  15. {impi_devel-2021.9.0.data → impi_devel-2021.14.1.data}/data/Library/include/mpicxx.h +2705 -2705
  16. {impi_devel-2021.9.0.data → impi_devel-2021.14.1.data}/data/Library/include/mpio.h +149 -0
  17. impi_devel-2021.14.1.data/data/Library/lib/impi.lib +0 -0
  18. impi_devel-2021.14.1.data/data/share/doc/mpi/licensing/license.txt +72 -0
  19. impi_devel-2021.14.1.data/data/share/doc/mpi/licensing/third-party-programs.txt +1476 -0
  20. {impi_devel-2021.9.0.dist-info → impi_devel-2021.14.1.dist-info}/METADATA +30 -30
  21. impi_devel-2021.14.1.dist-info/RECORD +24 -0
  22. {impi_devel-2021.9.0.dist-info → impi_devel-2021.14.1.dist-info}/WHEEL +1 -1
  23. impi_devel-2021.9.0.data/data/Library/bin/debug/impi.dll +0 -0
  24. impi_devel-2021.9.0.data/data/Library/bin/debug/impi.pdb +0 -0
  25. impi_devel-2021.9.0.data/data/Library/bin/release/impi.pdb +0 -0
  26. impi_devel-2021.9.0.data/data/Library/lib/impi.lib +0 -0
  27. impi_devel-2021.9.0.dist-info/RECORD +0 -21
  28. {impi_devel-2021.9.0.dist-info → impi_devel-2021.14.1.dist-info}/LICENSE.txt +0 -0
  29. {impi_devel-2021.9.0.dist-info → impi_devel-2021.14.1.dist-info}/top_level.txt +0 -0
@@ -27,11 +27,11 @@ rem Keep the self name (as "filename.ext") in the variable before cycle. We will
27
27
  set selfname=%~nx0
28
28
 
29
29
  rem MPIVERSION is the version of the Intel^(R^) MPI Library that mpicc is intended for
30
- set MPIVERSION=2021.9
30
+ set MPIVERSION=2021.14
31
31
 
32
32
  echo %selfname% for the Intel^(R^) MPI Library %MPIVERSION% for Windows*
33
33
  echo Copyright Intel Corporation.
34
- echo.
34
+ echo\
35
35
 
36
36
  set fisrst_arg=x%1
37
37
  set "fisrst_arg=%fisrst_arg:"=%"
@@ -76,30 +76,67 @@ if "%fisrst_arg%" == "x" (
76
76
 
77
77
  rem The I_MPI_ROOT should be defined by a installer
78
78
  if "%I_MPI_ROOT%" == "" (
79
- echo You have to source ^<Intel MPI^>\bin\mpivars.bat
79
+ echo You have to source ^<Intel MPI^>\etc\mpi\vars.bat
80
80
  exit /B 1
81
81
  )
82
- set I_MPI_INCDIR="%I_MPI_ROOT%\include"
83
- set I_MPI_LIBDIR="%I_MPI_ROOT%\lib"
84
- set I_MPI_CFGDIR="%I_MPI_ROOT%\etc"
82
+ set "I_MPI_INCDIR=%I_MPI_ROOT%\include"
83
+ set "I_MPI_LIBDIR=%I_MPI_ROOT%\lib"
84
+ set "I_MPI_CFGDIR=%I_MPI_ROOT%\etc"
85
+ if exist "%I_MPI_ROOT%\lib\mpi\debug" (
86
+ set "I_MPI_DBG_LIB_DIR=\lib\mpi\debug"
87
+ set "I_MPI_RELEASE_LIB_DIR=\lib"
88
+ ) else (
89
+ set "I_MPI_DBG_LIB_DIR=\lib\debug"
90
+ set "I_MPI_RELEASE_LIB_DIR=\lib\release"
91
+ )
85
92
  :: The environment variables I_MPI_COMPILER_CONFIG_DIR may be used
86
93
  :: to override directory where *.conf files are placed.
87
94
  if NOT "%I_MPI_COMPILER_CONFIG_DIR%" == "" (
88
95
  set I_MPI_CFGDIR=%I_MPI_COMPILER_CONFIG_DIR%
89
96
  )
90
97
 
91
- :: The environment variables I_MPI_{CC,CXX} and MPICH_{CC,CXX} may
98
+ :: The default compiler is cl.exe. Here we get the full path to cl.exe
99
+ :: to avoid a binary hijacking vulnerability. To do that we use vswhere
100
+ :: if available, otherwise the VcToolsInstallDir env var.
101
+ set CC=
102
+ set CCname="cl.exe"
103
+ set InstallDir=
104
+ set Version=
105
+ set VsWhere="C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe"
106
+ if exist "%VsWhere%" (
107
+ setlocal EnableDelayedExpansion
108
+ for /f "usebackq tokens=*" %%i in (`%VsWhere% -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath`) do (
109
+ set InstallDir=%%i
110
+ )
111
+ if NOT "%I_MPI_MSVC_VERSION%" == "" (
112
+ set Version=%I_MPI_MSVC_VERSION%
113
+ ) else if exist "%InstallDir%\VC\Auxiliary\Build\Microsoft.VCToolsVersion.default.txt" (
114
+ set /p Version=<"%InstallDir%\VC\Auxiliary\Build\Microsoft.VCToolsVersion.default.txt"
115
+ set Version=!Version: =!
116
+ )
117
+ set CC="%InstallDir%\VC\Tools\MSVC\%Version%\bin\HostX64\x64\cl.exe"
118
+ set CCname="cl.exe"
119
+ setlocal DisableDelayedExpansion
120
+ ) else (
121
+ set CC="%VCToolsInstallDir%\bin\Hostx64\x64\cl.exe"
122
+ set CCname="cl.exe"
123
+ )
124
+
125
+ :: The environment variables I_MPI_{CC,CXX} and MPICH_{CC,CXX} may
92
126
  :: be used to override the default choice (the CC has highest priority).
93
- set CC=cl.exe
94
127
  if NOT "%I_MPI_CC%" == "" (
95
128
  set CC=%I_MPI_CC%
129
+ set CCname=%CC%
96
130
  ) else if NOT "%MPICH_CC%" == "" (
97
131
  set CC=%MPICH_CC%
132
+ set CCname=%CC%
98
133
  )
99
134
  if NOT "%I_MPI_CXX%" == "" (
100
135
  set CC=%I_MPI_CXX%
136
+ set CCname=%CC%
101
137
  ) else if NOT "%MPICH_CXX%" == "" (
102
138
  set CC=%MPICH_CXX%
139
+ set CCname=%CC%
103
140
  )
104
141
 
105
142
  :: The environment variables I_MPI_{CC,CXX}_PROFILE and MPI{CC,CXX}_RPOFILE
@@ -127,7 +164,7 @@ set I_MPI_CFLAGS=
127
164
  set I_MPI_LDFLAGS=
128
165
  set I_MPI_LIBNAME=impi
129
166
  set I_MPI_OTHERLIBS=
130
- set I_MPI_TRACE_PATH=""
167
+ set I_MPI_TRACE_PATH=
131
168
  set OTHER_INCLUDE=
132
169
  set OTHER_LIBPATH=
133
170
  set VTTRACE_LIBS_START=
@@ -147,6 +184,10 @@ set param_was_processed=
147
184
  set PROFILE_INCPATHS=""
148
185
  set PROFILE_PRELIB=""
149
186
  set PROFILE_POSTLIB=""
187
+ rem icxp specific variables
188
+ set USE_ICPX=no
189
+ set LIB_PREFIX=
190
+ set LINKER_OPTION=/link
150
191
 
151
192
  rem ------------------------------------------------------------------------
152
193
  rem Argument processing.
@@ -273,17 +314,17 @@ set "args_for_processing=%args_for_processing:"=%"
273
314
 
274
315
  :: Override mpi library in regards to -link_mpi
275
316
  if "%mpilib_override%" == "opt" (
276
- set MPILIBDIR=\release
317
+ set MPILIBDIR=%I_MPI_RELEASE_LIB_DIR%
277
318
  set I_MPI_LIBNAME=impi
278
319
  ) else if "%mpilib_override%" == "dbg" (
279
- set MPILIBDIR=\debug
320
+ set MPILIBDIR=%I_MPI_DBG_LIB_DIR%
280
321
  set I_MPI_LIBNAME=impi
281
322
  ) else if NOT "%mpilib_override%" == "" (
282
323
  echo Warning: incorrect library version specified. Automatically selected library will be used
283
324
  )
284
325
 
285
326
  if "%MPILIBDIR%" == "" (
286
- set MPILIBDIR=\release
327
+ set MPILIBDIR=%I_MPI_RELEASE_LIB_DIR%
287
328
  )
288
329
 
289
330
  rem If there is a file $I_MPI_CFGDIR/mpicc-$CCname.conf,
@@ -291,51 +332,52 @@ rem where CCname is the name of the compiler with all spaces replaced by hyphens
291
332
  rem (e.g., "cc -64" becomes "cc--64", that file is sources, allowing other
292
333
  rem changes to the compilation environment. See the variables used by the
293
334
  rem script (defined above)
294
- set CCname=%CC%
295
335
  rem echo CCname=%CCname%
296
- if EXIST %I_MPI_CFGDIR%\mpicc-%CCname%.conf (
297
- call :CALL_CONF_FILE %I_MPI_CFGDIR%\mpicc-%CCname%.conf
336
+ if EXIST "%I_MPI_CFGDIR%\mpicc-%CCname%.conf" (
337
+ call :CALL_CONF_FILE "%I_MPI_CFGDIR%\mpicc-%CCname%.conf"
298
338
  )
299
339
 
300
340
  if "%trace_opt%" == "yes" (
301
- if %I_MPI_TRACE_PATH% == "" (
341
+ if "%I_MPI_TRACE_PATH%" == "" (
302
342
  if "%static_log%" == "yes" (
303
- set I_MPI_TRACE_PATH="%VT_LIB_DIR%"
343
+ set "I_MPI_TRACE_PATH=%VT_LIB_DIR%"
304
344
  ) else (
305
- set I_MPI_TRACE_PATH="%VT_SLIB_DIR%"
345
+ set "I_MPI_TRACE_PATH=%VT_SLIB_DIR%"
306
346
  )
307
347
  )
308
- set VTTRACE_LIBS_START=%I_MPI_TRACE_PATH% %I_MPI_TRACE_LIB% %I_MPI_TRACE_EXTRA_LIB%
348
+ set "VTTRACE_LIBS_START=%I_MPI_TRACE_PATH% %I_MPI_TRACE_LIB% %I_MPI_TRACE_EXTRA_LIB%"
309
349
  )
310
350
 
311
351
  rem Derived variables. These are assembled from variables set from the
312
352
  rem default, environment, configuration file (if any) and command-line
313
353
  rem options (if any)
314
- set mpilibs=%I_MPI_LIBNAME%.lib
354
+
355
+ set "mpilibs=%LIB_PREFIX%%I_MPI_LIBNAME%.lib"
315
356
  if "%need_cxx_lib%" == "yes" (
316
- set mpilibs=%mpilibs% %I_MPI_LIBNAME%cxx.lib
357
+ set "mpilibs=%mpilibs% %LIB_PREFIX%%I_MPI_LIBNAME%cxx.lib"
317
358
  )
359
+
318
360
  rem if "%NEEDSPLIB%" == "yes" (
319
361
  rem set mpilibs=%PI_MPI_LIBNAME%.lib %mpilibs%
320
362
  rem )
321
363
 
322
364
  rem Handle the case of a profile switch
323
365
  if NOT "%profConf%" == "" (
324
- if EXIST %I_MPI_LIBDIR%\%profConf%.lib (
366
+ if EXIST "%I_MPI_LIBDIR%\%profConf%.lib" (
325
367
  set profConfLibExists=yes
326
- )
327
- if EXIST %I_MPI_CFGDIR%\%profConf%.conf (
368
+ )
369
+ if EXIST "%I_MPI_CFGDIR%\%profConf%.conf" (
328
370
  set profConfFileExists=yes
329
- )
371
+ )
330
372
  )
331
373
  if "%profConfLibExists%" == "yes" (
332
- set mpilibs=%profConf%.lib %mpilibs%
374
+ set "mpilibs=%profConf%.lib %mpilibs%"
333
375
  ) else if NOT "%profConf%" == "" (
334
376
  if "%profConfFileExists%" == "yes" (
335
- call :CALL_CONF_FILE %I_MPI_CFGDIR%\%profConf%.conf
377
+ call :CALL_CONF_FILE "%I_MPI_CFGDIR%\%profConf%.conf"
336
378
  ) else (
337
- echo The configuration file %I_MPI_CFGDIR%\%profConf%.conf is not found!
338
- )
379
+ echo "The configuration file %I_MPI_CFGDIR%\%profConf%.conf is not found!"
380
+ )
339
381
  )
340
382
  if NOT %PROFILE_INCPATHS% == "" set I_MPI_CFLAGS=%PROFILE_INCPATHS% %I_MPI_CFLAGS%
341
383
  if NOT %PROFILE_PRELIB% == "" set mpilibs=%PROFILE_PRELIB% %mpilibs%
@@ -362,14 +404,14 @@ if "%show_env%" == "yes" (
362
404
  )
363
405
 
364
406
  if "%linking%" == "yes" (
365
- if %I_MPI_TRACE_PATH% == "" (
407
+ if "%I_MPI_TRACE_PATH%" == "" (
366
408
  :: Place default mpi library at end for linking with ITAC
367
- %Show% %CC% %I_MPI_CFLAGS% %I_MPI_LDFLAGS% %allargs% %OTHER_INCLUDE% -I%I_MPI_INCDIR% /link %OTHER_LIBPATH% /LIBPATH:"%I_MPI_ROOT%\lib%MPILIBDIR%" /LIBPATH:%I_MPI_LIBDIR% %I_MPI_OTHERLIBS% %link_args% %mpilibs%
409
+ %Show% %CC% %I_MPI_CFLAGS% %I_MPI_LDFLAGS% %allargs% %OTHER_INCLUDE% -I"%I_MPI_INCDIR%" -I"%I_MPI_INCDIR%\mpi" %LINKER_OPTION% %OTHER_LIBPATH% /LIBPATH:"%I_MPI_ROOT%%MPILIBDIR%" /LIBPATH:"%I_MPI_LIBDIR%" %I_MPI_OTHERLIBS% %link_args% %mpilibs%
368
410
  ) else (
369
- %Show% %CC% %I_MPI_CFLAGS% %I_MPI_LDFLAGS% %allargs% %OTHER_INCLUDE% -I%I_MPI_INCDIR% /link %OTHER_LIBPATH% /LIBPATH:%I_MPI_TRACE_PATH% /LIBPATH:"%I_MPI_ROOT%\lib%MPILIBDIR%" /LIBPATH:%I_MPI_LIBDIR% %VTTRACE_LIBS_START% %mpilibs% %I_MPI_OTHERLIBS% %link_args%
411
+ %Show% %CC% %I_MPI_CFLAGS% %I_MPI_LDFLAGS% %allargs% %OTHER_INCLUDE% -I"%I_MPI_INCDIR%" -I"%I_MPI_INCDIR%\mpi" %LINKER_OPTION% %OTHER_LIBPATH% /LIBPATH:"%I_MPI_TRACE_PATH%" /LIBPATH:"%I_MPI_ROOT%%MPILIBDIR%" /LIBPATH:"%I_MPI_LIBDIR%" %VTTRACE_LIBS_START% %mpilibs% %I_MPI_OTHERLIBS% %link_args%
370
412
  )
371
413
  ) else (
372
- %Show% %CC% %I_MPI_CFLAGS% %allargs% %OTHER_INCLUDE% -I%I_MPI_INCDIR%
414
+ %Show% %CC% %I_MPI_CFLAGS% %allargs% %OTHER_INCLUDE% -I"%I_MPI_INCDIR%"
373
415
  )
374
416
 
375
417
  if ERRORLEVEL 1 (
@@ -447,6 +489,7 @@ rem set CC=%arg:~4%
447
489
  rem -cc=* -config=*
448
490
  if "%arg%" == "-cc" ( rem "-cc=*"
449
491
  set CC=%_param: =%
492
+ set CCname=%CC%
450
493
  set addarg=no
451
494
  set param_was_processed=yes
452
495
  goto END_OF_CASE
@@ -460,9 +503,15 @@ rem set CC=%arg:~4%
460
503
  rem -cxx=* -config=*
461
504
  if "%arg%" == "-cxx" ( rem "-cxx=*"
462
505
  set CC=%_param: =%
506
+ set CCname=%CC%
463
507
  set addarg=no
464
508
  set param_was_processed=yes
465
509
  set need_cxx_lib=yes
510
+ if "%_param: =%" == "icpx" (
511
+ set USE_ICPX=yes
512
+ set LIB_PREFIX=/l
513
+ set LINKER_OPTION=
514
+ )
466
515
  goto END_OF_CASE
467
516
  )
468
517
  if "%arg%" == "-show" (
@@ -528,16 +577,16 @@ rem )
528
577
  goto END_OF_CASE
529
578
  )
530
579
 
531
- if "%arg%" == "-Z7" set MPILIBDIR=\debug& goto END_OF_CASE
532
- if "%arg%" == "-Zi" set MPILIBDIR=\debug& goto END_OF_CASE
533
- if "%arg%" == "-ZI" set MPILIBDIR=\debug& goto END_OF_CASE
534
- if "%arg%" == "-debug" set MPILIBDIR=\debug& goto END_OF_CASE
580
+ if "%arg%" == "-Z7" set MPILIBDIR=%I_MPI_DBG_LIB_DIR%& goto END_OF_CASE
581
+ if "%arg%" == "-Zi" set MPILIBDIR=%I_MPI_DBG_LIB_DIR%& goto END_OF_CASE
582
+ if "%arg%" == "-ZI" set MPILIBDIR=%I_MPI_DBG_LIB_DIR%& goto END_OF_CASE
583
+ if "%arg%" == "-debug" set MPILIBDIR=%I_MPI_DBG_LIB_DIR%& goto END_OF_CASE
535
584
  if "%arg%" == "-debug:none" goto END_OF_CASE
536
- if "%arg%" == "-debug:extended" set MPILIBDIR=\debug& goto END_OF_CASE
537
- if "%arg%" == "-debug:semantic_stepping" set MPILIBDIR=\debug& goto END_OF_CASE
538
- if "%arg%" == "-debug:full" set MPILIBDIR=\debug& goto END_OF_CASE
539
- if "%arg%" == "-debug:partial" set MPILIBDIR=\debug& goto END_OF_CASE
540
- if "%arg%" == "-debug:minimal" set MPILIBDIR=\debug& goto END_OF_CASE
585
+ if "%arg%" == "-debug:extended" set MPILIBDIR=%I_MPI_DBG_LIB_DIR%& goto END_OF_CASE
586
+ if "%arg%" == "-debug:semantic_stepping" set MPILIBDIR=%I_MPI_DBG_LIB_DIR%& goto END_OF_CASE
587
+ if "%arg%" == "-debug:full" set MPILIBDIR=%I_MPI_DBG_LIB_DIR%& goto END_OF_CASE
588
+ if "%arg%" == "-debug:partial" set MPILIBDIR=%I_MPI_DBG_LIB_DIR%& goto END_OF_CASE
589
+ if "%arg%" == "-debug:minimal" set MPILIBDIR=%I_MPI_DBG_LIB_DIR%& goto END_OF_CASE
541
590
 
542
591
  if "%arg%" == "-mt_mpi" (
543
592
  set addarg=no
@@ -19,8 +19,8 @@ rem This script sets some variable and the general script.
19
19
  rem ----------------------------------------------------------------------------
20
20
 
21
21
  if "%1" == "" (
22
- call mpicxx.bat
22
+ call "%I_MPI_ROOT%\bin\mpicxx.bat"
23
23
  ) else (
24
- call mpicxx.bat -cxx=cl %*
24
+ call "%I_MPI_ROOT%\bin\mpicxx.bat" -cxx=cl %*
25
25
  )
26
26
 
@@ -22,5 +22,4 @@ rem We need to use CXX lib additionally
22
22
  set need_cxx_lib=yes
23
23
 
24
24
  rem Invoke C/C++ version of driver
25
- call mpicc.bat %*
26
-
25
+ call "%I_MPI_ROOT%\bin\mpicc.bat" %*
@@ -18,8 +18,8 @@ rem Simple script to compile and/or link MPI programs by Intel® Fortran Compile
18
18
  rem ----------------------------------------------------------------------------
19
19
 
20
20
  if "%1" == "" (
21
- call mpifc.bat
21
+ call "%I_MPI_ROOT%\bin\mpifc.bat"
22
22
  ) else (
23
- call mpifc.bat -fc=ifort %*
23
+ call "%I_MPI_ROOT%\bin\mpifc.bat" -fc=ifort %*
24
24
  )
25
25
 
@@ -18,8 +18,8 @@ rem Simple script to compile and/or link MPI programs by Intel® Fortran Compile
18
18
  rem ----------------------------------------------------------------------------
19
19
 
20
20
  if "%1" == "" (
21
- call mpifc.bat
21
+ call "%I_MPI_ROOT%\bin\mpifc.bat"
22
22
  ) else (
23
- call mpifc.bat -fc=ifort %*
23
+ call "%I_MPI_ROOT%\bin\mpifc.bat" -fc=ifort %*
24
24
  )
25
25
 
@@ -26,11 +26,11 @@ rem Keep the self name (as "filename.ext") in the variable before cycle. We will
26
26
  set selfname=%~nx0
27
27
 
28
28
  rem MPIVERSION is the version of the Intel^(R^) MPI Library that mpifc is intended for
29
- set MPIVERSION=2021.9
29
+ set MPIVERSION=2021.14
30
30
 
31
31
  echo %selfname% for the Intel^(R^) MPI Library %MPIVERSION% for Windows*
32
32
  echo Copyright Intel Corporation.
33
- echo.
33
+ echo\
34
34
 
35
35
  set fisrst_arg=x%1
36
36
  set "fisrst_arg=%fisrst_arg:"=%"
@@ -61,6 +61,7 @@ if "%fisrst_arg%" == "x" (
61
61
  echo All other options will be passed to the compiler without changing.
62
62
  echo ----------------------------------------------------------------------------
63
63
  echo The following environment variables are used:
64
+ echo CMPLR_ROOT Intel^(R^) Compiler installation directory path
64
65
  echo I_MPI_ROOT Intel^(R^) MPI Library installation directory path
65
66
  echo I_MPI_{FC,F77,F90} or MPICH_{FC,F77,F90}
66
67
  echo the path/name of the underlying compiler to be used.
@@ -73,14 +74,26 @@ if "%fisrst_arg%" == "x" (
73
74
  exit /B 0
74
75
  )
75
76
 
77
+ rem The CMPLR_ROOT should be defined by a installer
78
+ if "%CMPLR_ROOT%" == "" (
79
+ echo You have to source ^<Intel Compiler^>\bin\vars.bat
80
+ exit /B 1
81
+ )
76
82
  rem The I_MPI_ROOT should be defined by a installer
77
83
  if "%I_MPI_ROOT%" == "" (
78
84
  echo You have to source ^<Intel MPI^>\bin\mpivars.bat
79
85
  exit /B 1
80
86
  )
81
- set I_MPI_INCDIR="%I_MPI_ROOT%\include"
82
- set I_MPI_LIBDIR="%I_MPI_ROOT%\lib"
83
- set I_MPI_CFGDIR="%I_MPI_ROOT%\etc"
87
+ set "I_MPI_INCDIR=%I_MPI_ROOT%\include"
88
+ set "I_MPI_LIBDIR=%I_MPI_ROOT%\lib"
89
+ set "I_MPI_CFGDIR=%I_MPI_ROOT%\etc"
90
+ if exist "%I_MPI_ROOT%\lib\mpi\debug" (
91
+ set "I_MPI_DBG_LIB_DIR=\lib\mpi\debug"
92
+ set "I_MPI_RELEASE_LIB_DIR=\lib"
93
+ ) else (
94
+ set "I_MPI_DBG_LIB_DIR=\lib\debug"
95
+ set "I_MPI_RELEASE_LIB_DIR=\lib\release"
96
+ )
84
97
  :: The environment variables I_MPI_COMPILER_CONFIG_DIR may be used
85
98
  :: to override directory where *.conf files are placed.
86
99
  if NOT "%I_MPI_COMPILER_CONFIG_DIR%" == "" (
@@ -89,7 +102,7 @@ if NOT "%I_MPI_COMPILER_CONFIG_DIR%" == "" (
89
102
 
90
103
  :: The environment variables I_MPI_{FC,F77,F90} and MPICH_{FC,F77,F90} may
91
104
  :: be used to override the default choice (the FC has highest priority).
92
- set FC=ifort.exe
105
+ set FC="%CMPLR_ROOT%\bin\ifort.exe"
93
106
  if NOT "%I_MPI_F77%" == "" (
94
107
  set FC=%I_MPI_F77%
95
108
  ) else if NOT "%MPICH_F77%" == "" (
@@ -150,7 +163,7 @@ set I_MPI_CFLAGS=
150
163
  set I_MPI_LDFLAGS=
151
164
  set I_MPI_LIBNAME=impi
152
165
  set I_MPI_OTHERLIBS=
153
- set I_MPI_TRACE_PATH=""
166
+ set I_MPI_TRACE_PATH=
154
167
  set OTHER_INCLUDE=
155
168
  set OTHER_LIBPATH=
156
169
  set VTTRACE_LIBS_START=
@@ -290,20 +303,17 @@ set "args_for_processing=%args_for_processing:"=%"
290
303
 
291
304
  :: Override mpi library in regards to -link_mpi
292
305
  if "%mpilib_override%" == "opt" (
293
- set MPILIBDIR=\release
306
+ set MPILIBDIR=%I_MPI_RELEASE_LIB_DIR%
294
307
  set I_MPI_LIBNAME=impi
295
- set debug_suffix=
296
308
  ) else if "%mpilib_override%" == "dbg" (
297
- set MPILIBDIR=\debug
309
+ set MPILIBDIR=%I_MPI_DBG_LIB_DIR%
298
310
  set I_MPI_LIBNAME=impi
299
- set debug_suffix=d
300
311
  ) else if NOT "%mpilib_override%" == "" (
301
312
  echo Warning: incorrect library version specified. Automatically selected library will be used
302
- set MPILIBDIR=\release
303
313
  )
304
314
 
305
315
  if "%MPILIBDIR%" == "" (
306
- set MPILIBDIR=\release
316
+ set MPILIBDIR=%I_MPI_RELEASE_LIB_DIR%
307
317
  )
308
318
 
309
319
  rem If there is a file $I_MPI_CFGDIR/mpif90-$FCname.conf,
@@ -313,19 +323,19 @@ rem changes to the compilation environment. See the variables used by the
313
323
  rem script (defined above)
314
324
  set FCname=%FC%
315
325
  rem echo FCname="%FC%"
316
- if EXIST %I_MPI_CFGDIR%\mpifc-%FCname%.conf (
317
- call :CALL_CONF_FILE %I_MPI_CFGDIR%\mpifc-%FCname%.conf
326
+ if EXIST "%I_MPI_CFGDIR%\mpifc-%FCname%.conf" (
327
+ call :CALL_CONF_FILE "%I_MPI_CFGDIR%\mpifc-%FCname%.conf"
318
328
  )
319
329
 
320
330
  if "%trace_opt%" == "yes" (
321
- if %I_MPI_TRACE_PATH% == "" (
331
+ if "%I_MPI_TRACE_PATH%" == "" (
322
332
  if "%static_log%" == "yes" (
323
- set I_MPI_TRACE_PATH="%VT_LIB_DIR%"
333
+ set "I_MPI_TRACE_PATH=%VT_LIB_DIR%"
324
334
  ) else (
325
- set I_MPI_TRACE_PATH="%VT_SLIB_DIR%"
335
+ set "I_MPI_TRACE_PATH=%VT_SLIB_DIR%"
326
336
  )
327
337
  )
328
- set VTTRACE_LIBS_START=%I_MPI_TRACE_PATH% %I_MPI_TRACE_LIB% %I_MPI_TRACE_EXTRA_LIB%
338
+ set "VTTRACE_LIBS_START=%I_MPI_TRACE_PATH% %I_MPI_TRACE_LIB% %I_MPI_TRACE_EXTRA_LIB%"
329
339
  )
330
340
 
331
341
  rem Derived variables. These are assembled from variables set from the
@@ -338,22 +348,22 @@ rem )
338
348
 
339
349
  rem Handle the case of a profile switch
340
350
  if NOT "%profConf%" == "" (
341
- if EXIST %I_MPI_LIBDIR%\lib%profConf%.lib set profConfLibExists=yes
351
+ if EXIST "%I_MPI_LIBDIR%\lib%profConf%.lib" set profConfLibExists=yes
342
352
  if "%profConfLibExists%" == "yes" (
343
- set mpilibs=%I_MPI_LIBDIR%\%profConf%.lib %mpilibs%
353
+ set "mpilibs=%I_MPI_LIBDIR%\%profConf%.lib %mpilibs%"
344
354
  )
345
- if EXIST %I_MPI_CFGDIR%\%profConf%.conf (
346
- call :CALL_CONF_FILE %I_MPI_CFGDIR%\%profConf%.conf
355
+ if EXIST "%I_MPI_CFGDIR%\%profConf%.conf" (
356
+ call :CALL_CONF_FILE "%I_MPI_CFGDIR%\%profConf%.conf"
347
357
  ) else (
348
- echo The configuration file %I_MPI_CFGDIR%\%profConf%.conf is not found!
358
+ echo "The configuration file %I_MPI_CFGDIR%\%profConf%.conf is not found!"
349
359
  )
350
360
  )
351
361
 
352
362
  if "%ilp64%" == "yes" (
353
- set FCINCDIRS=%FCINC%%I_MPI_INCDIR%\ilp64 %FCINC%%I_MPI_INCDIR%
354
- set mpilibs=libmpi_ilp64.lib %mpilibs%
363
+ set FCINCDIRS=%FCINC%"%I_MPI_INCDIR%\mpi\ilp64" %FCINC%"%I_MPI_INCDIR%" %FCINC%"%I_MPI_INCDIR%\mpi"
364
+ set "mpilibs=libmpi_ilp64.lib %mpilibs%"
355
365
  ) else (
356
- set FCINCDIRS=%FCINC%%I_MPI_INCDIR%
366
+ set FCINCDIRS=%FCINC%"%I_MPI_INCDIR%" %FCINC%"%I_MPI_INCDIR%\mpi"
357
367
  )
358
368
 
359
369
  if NOT %PROFILE_INCPATHS% == "" set I_MPI_CFLAGS=%PROFILE_INCPATHS% %I_MPI_CFLAGS%
@@ -407,11 +417,11 @@ if "%show_env%" == "yes" (
407
417
  )
408
418
 
409
419
  if "%linking%" == "yes" (
410
- if %I_MPI_TRACE_PATH% == "" (
420
+ if "%I_MPI_TRACE_PATH%" == "" (
411
421
  :: Place default mpi library at end for linking with ITAC
412
- %Show% %FC% %I_MPI_CFLAGS% %I_MPI_LDFLAGS% %allargs% %FCMODDIRS% %OTHER_INCLUDE% %FCINCDIRS% /link %OTHER_LIBPATH% /LIBPATH:"%I_MPI_ROOT%\lib%MPILIBDIR%" /LIBPATH:%I_MPI_LIBDIR% %I_MPI_OTHERLIBS% %link_args% %mpilibs%
422
+ %Show% %FC% %I_MPI_CFLAGS% %I_MPI_LDFLAGS% %allargs% %FCMODDIRS% %OTHER_INCLUDE% %FCINCDIRS% /link %OTHER_LIBPATH% /LIBPATH:"%I_MPI_ROOT%%MPILIBDIR%" /LIBPATH:"%I_MPI_LIBDIR%" %I_MPI_OTHERLIBS% %link_args% %mpilibs%
413
423
  ) else (
414
- %Show% %FC% %I_MPI_CFLAGS% %I_MPI_LDFLAGS% %allargs% %FCMODDIRS% %OTHER_INCLUDE% %FCINCDIRS% /link %OTHER_LIBPATH% /LIBPATH:%I_MPI_TRACE_PATH% /LIBPATH:"%I_MPI_ROOT%\lib%MPILIBDIR%" /LIBPATH:%I_MPI_LIBDIR% %VTTRACE_LIBS_START% %mpilibs% %I_MPI_OTHERLIBS% %link_args%
424
+ %Show% %FC% %I_MPI_CFLAGS% %I_MPI_LDFLAGS% %allargs% %FCMODDIRS% %OTHER_INCLUDE% %FCINCDIRS% /link %OTHER_LIBPATH% /LIBPATH:"%I_MPI_TRACE_PATH%" /LIBPATH:"%I_MPI_ROOT%%MPILIBDIR%" /LIBPATH:"%I_MPI_LIBDIR%" %VTTRACE_LIBS_START% %mpilibs% %I_MPI_OTHERLIBS% %link_args%
415
425
  )
416
426
  ) else (
417
427
  %Show% %FC% %I_MPI_CFLAGS% %allargs% %FCMODDIRS% %OTHER_INCLUDE% %FCINCDIRS%
@@ -582,15 +592,16 @@ rem )
582
592
  goto END_OF_CASE
583
593
  )
584
594
 
585
- if "%arg%" == "-Z7" set MPILIBDIR=\debug& goto END_OF_CASE
586
- if "%arg%" == "-Zi" set MPILIBDIR=\debug& goto END_OF_CASE
587
- if "%arg%" == "-debug" set MPILIBDIR=\debug& goto END_OF_CASE
595
+ if "%arg%" == "-Z7" set MPILIBDIR=%I_MPI_DBG_LIB_DIR%& goto END_OF_CASE
596
+ if "%arg%" == "-Zi" set MPILIBDIR=%I_MPI_DBG_LIB_DIR%& goto END_OF_CASE
597
+ if "%arg%" == "-ZI" set MPILIBDIR=%I_MPI_DBG_LIB_DIR%& goto END_OF_CASE
598
+ if "%arg%" == "-debug" set MPILIBDIR=%I_MPI_DBG_LIB_DIR%& goto END_OF_CASE
588
599
  if "%arg%" == "-debug:none" goto END_OF_CASE
589
- if "%arg%" == "-debug:extended" set MPILIBDIR=\debug& goto END_OF_CASE
590
- if "%arg%" == "-debug:semantic_stepping" set MPILIBDIR=\debug& goto END_OF_CASE
591
- if "%arg%" == "-debug:full" set MPILIBDIR=\debug& goto END_OF_CASE
592
- if "%arg%" == "-debug:partial" set MPILIBDIR=\debug& goto END_OF_CASE
593
- if "%arg%" == "-debug:minimal" set MPILIBDIR=\debug& goto END_OF_CASE
600
+ if "%arg%" == "-debug:extended" set MPILIBDIR=%I_MPI_DBG_LIB_DIR%& goto END_OF_CASE
601
+ if "%arg%" == "-debug:semantic_stepping" set MPILIBDIR=%I_MPI_DBG_LIB_DIR%& goto END_OF_CASE
602
+ if "%arg%" == "-debug:full" set MPILIBDIR=%I_MPI_DBG_LIB_DIR%& goto END_OF_CASE
603
+ if "%arg%" == "-debug:partial" set MPILIBDIR=%I_MPI_DBG_LIB_DIR%& goto END_OF_CASE
604
+ if "%arg%" == "-debug:minimal" set MPILIBDIR=%I_MPI_DBG_LIB_DIR%& goto END_OF_CASE
594
605
 
595
606
  rem if "%arg%" == "-static" (
596
607
  rem set static_mpi=yes
@@ -19,8 +19,8 @@ rem This script sets some variable and the general script.
19
19
  rem ----------------------------------------------------------------------------
20
20
 
21
21
  if "%1" == "" (
22
- call mpicc.bat
22
+ call "%I_MPI_ROOT%\bin\mpicc.bat"
23
23
  ) else (
24
- call mpicc.bat -cc=icl %*
24
+ call "%I_MPI_ROOT%\bin\mpicc.bat" -cc=icl %*
25
25
  )
26
26
 
@@ -19,8 +19,8 @@ rem This script sets some variable and the general script.
19
19
  rem ----------------------------------------------------------------------------
20
20
 
21
21
  if "%1" == "" (
22
- call mpicxx.bat
22
+ call "%I_MPI_ROOT%\bin\mpicxx.bat"
23
23
  ) else (
24
- call mpicxx.bat -cxx=icl %*
24
+ call "%I_MPI_ROOT%\bin\mpicxx.bat" -cxx=icl %*
25
25
  )
26
26
 
@@ -0,0 +1,24 @@
1
+ @echo off
2
+ rem Copyright Intel Corporation.
3
+ rem
4
+ rem This software and the related documents are Intel copyrighted materials,
5
+ rem and your use of them is governed by the express license under which they
6
+ rem were provided to you (License). Unless the License provides otherwise,
7
+ rem you may not use, modify, copy, publish, distribute, disclose or transmit
8
+ rem this software or the related documents without Intel's prior written
9
+ rem permission.
10
+ rem
11
+ rem This software and the related documents are provided as is, with no
12
+ rem express or implied warranties, other than those that are expressly stated
13
+ rem in the License.
14
+
15
+ rem ----------------------------------------------------------------------------------
16
+ rem mpicxx.bat
17
+ rem Simple script to compile and/or link MPI programs by Intel® LLVM-based C Compiler.
18
+ rem ----------------------------------------------------------------------------------
19
+
20
+ if "%1" == "" (
21
+ call "%I_MPI_ROOT%\bin\mpicxx.bat"
22
+ ) else (
23
+ call "%I_MPI_ROOT%\bin\mpicxx.bat" -cxx=icpx %*
24
+ )
@@ -0,0 +1,24 @@
1
+ @echo off
2
+ rem Copyright Intel Corporation.
3
+ rem
4
+ rem This software and the related documents are Intel copyrighted materials,
5
+ rem and your use of them is governed by the express license under which they
6
+ rem were provided to you (License). Unless the License provides otherwise,
7
+ rem you may not use, modify, copy, publish, distribute, disclose or transmit
8
+ rem this software or the related documents without Intel's prior written
9
+ rem permission.
10
+ rem
11
+ rem This software and the related documents are provided as is, with no
12
+ rem express or implied warranties, other than those that are expressly stated
13
+ rem in the License.
14
+
15
+ rem ----------------------------------------------------------------------------------
16
+ rem mpiicx.bat
17
+ rem Simple script to compile and/or link MPI programs by Intel® LLVM-based C Compiler.
18
+ rem ----------------------------------------------------------------------------------
19
+
20
+ if "%1" == "" (
21
+ call "%I_MPI_ROOT%\bin\mpicc.bat"
22
+ ) else (
23
+ call "%I_MPI_ROOT%\bin\mpicc.bat" -cc=icx %*
24
+ )
@@ -18,8 +18,8 @@ rem Simple script to compile and/or link MPI programs by Intel® Fortran Compile
18
18
  rem ----------------------------------------------------------------------------
19
19
 
20
20
  if "%1" == "" (
21
- call mpifc.bat
21
+ call "%I_MPI_ROOT%\bin\mpifc.bat"
22
22
  ) else (
23
- call mpifc.bat -fc=ifort %*
23
+ call "%I_MPI_ROOT%\bin\mpifc.bat" -fc=ifort %*
24
24
  )
25
25
 
@@ -0,0 +1,24 @@
1
+ @echo off
2
+ rem Copyright Intel Corporation.
3
+ rem
4
+ rem This software and the related documents are Intel copyrighted materials,
5
+ rem and your use of them is governed by the express license under which they
6
+ rem were provided to you (License). Unless the License provides otherwise,
7
+ rem you may not use, modify, copy, publish, distribute, disclose or transmit
8
+ rem this software or the related documents without Intel's prior written
9
+ rem permission.
10
+ rem
11
+ rem This software and the related documents are provided as is, with no
12
+ rem express or implied warranties, other than those that are expressly stated
13
+ rem in the License.
14
+
15
+ rem -----------------------------------------------------------------------------------------
16
+ rem mpiifx.bat
17
+ rem Simple script to compile and/or link MPI programs by Intel® LLVM-based Fortran Compiler.
18
+ rem -----------------------------------------------------------------------------------------
19
+
20
+ if "%1" == "" (
21
+ call "%I_MPI_ROOT%\bin\mpifc.bat"
22
+ ) else (
23
+ call "%I_MPI_ROOT%\bin\mpifc.bat" -fc=ifx %*
24
+ )