Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29253 Discussions

Installing PETSc with Intel MPI and compilers

Wee_Beng_T_
Beginner
2,354 Views

Hi,

I need to install and build PETSc with Intel MPI and compilers. It has so far been unsuccessful.

It seems that I need to know which mpi libraries to link to

The compiling and building is done in cygwin64.

The commands are:

export PETSC_DIR=`pwd`

export PETSC_ARCH=petsc-3.6.0_win64_impi_vs2012_debug

I then tried the 4 options below but they all failed. Does anyone manage to get it working?

1. ./config/configure.py --with-cc='win32fe mpiicc.bat' --with-fc='win32fe mpiifort.bat' --with-cxx='win32fe mpiicpc.bat' --with-blas-lapack-dir=/cygdrive/c/Program\ Files\ \(x86\)/Intel/Composer\ XE\ 2015/mkl/ --prefix=/cygdrive/c/wtay/Lib/petsc-3.6.0_win64_impi_vs2012_debug --with-debugging=1

2. ./config/configure.py --with-cc='win32fe cl' --with-fc='win32fe ifort' --with-cxx='win32fe cl' --with-mpi-include=/cygdrive/c/Program\ Files\ \(x86\)/Intel/MPI/5.0.3.048/intel64/include --with-mpi-lib="/cygdrive/c/Program Files (x86)/Intel/MPI/5.0.3.048/intel64/lib/impi.lib" --with-blas-lapack-dir=/cygdrive/c/Program\ Files\ \(x86\)/Intel/Composer\ XE\ 2015/mkl/ --prefix=/cygdrive/c/wtay/Lib/petsc-3.6.0_win64_impi_vs2012_debug --with-debugging=1

 

Also, how can I get intel premier support? It says not authorized. I've already registered my product (cluster edition 2015).

Thank you.

 

 

 

 

 

 

 

 

 

0 Kudos
2 Replies
TimP
Honored Contributor III
2,354 Views

Registration should automatically create an account which you can log into via "premier.intel.com"  Needless to say, there are times when the site is inaccessible (even inside USA), but if it persists in blocking you, you could ask about it on the companion registration and licensing forum.

I'm not familiar with this win32fe.  In my installation, mpiifort.bat et al. can run directly in a cygwin shell which is opened in an Intel compiler .cmd shell, assuming you have installed Intel MPI and the compilers from a Cluster Studio installer.  i.e. open the Inte64l compiler Visual Studio 2012 .cmd window and run \cygwin64\cygwin.bat to start the (64-bit mode) bash shell.  Needless to say, Intel doesn't "support" cygwin usage, nor does cygwin project support Intel development tools usage.

I have edited the Intel compiler shortcut so that it starts ipsxe-comp-vars.bat under (64-bit) System32\cmd.exe rather than the default (32-bit) SysWOW64\cmd.exe. I don't know whether this will make a difference, but it seems preferable not to mix in the 32-bit cmd.exe

As Intel MPI is purely a 64-bit application, it must be used with Intel64 compilers, on a Windows X64 installation (win8.1 in my case). 

I haven't explored whether recent fixes to the Cygwin mintty terminal have made it satisfactory for this purpose.

mpiicpc.bat -show_env, for example, shows in the LIB environment which folder is used for Intel MPI .lib files; in my case it appears to be picking up the beta MPI version, even though I started the 2015u4 .cmd windows.

Questions specific to Intel MPI might get more expert attention on the Cluster and HPC forum.

0 Kudos
Wee_Beng_T_
Beginner
2,354 Views

Ok will check. Thanks.

0 Kudos
Reply