Build Trilinos in VS+intel compiler

Following software are used:
1). Trilinos 11.14.1
2). Visual studio 2012
3). Intel compiler Composer XE2013
4). cmake 3.2.1


1.  Begin with intel Command Prompt Visual Studio 2012 mode
2.  Type in : cmake-gui to open cmake gui
3.  First configure in cmake
     Specif the generate for this project: " Visual studio 11 2012 Win64"
     Speify native compiler: Here you set CMAKE_C_COMPILER.  CAMKE_CXX_COMPILER and CMAKE_FORTRAN_COMPILER to icl, ifort respectively.


4.  Afetr first configuration, Turn off Tilinos_ENABLE_OPTIONAL_PACKAGES because most libraries in trilinos cannot be compiled in windows. Turn on Trilinos_ENABLE_Epetra, Trilinos_ENABLE_Epetraext, Trilinos_ENABLE_ML. Turn on Triluinos_ENABLE_Fortran, TPL_ENABLE_MPI if needed.


5. Do configure


6. Libraries like BLAS, LAPACK, MPI maybe missing. Set
   BLAS_LIBRARIES_DIRS = /pahto/mkl/lib/intel64
   BLAS_LIBRARIE_MAKE = mkl_intel_lp64


   LAPACK_LIBRARIES_DIRS = /pahto/mkl/lib/intel64
   LAPACK_LIBRARIE_MAKE = mkl_intel_lp64


  MPI_BASE_DIR = C:/Program Files/Microsoft HPC Pack2012/
  ........
by hand.


7.  Do configure
8. Do generate. You would get MSVC solution files.
9. Double click Trillinos.sln.
10. Add a preprocessor definition ICL and compile.

没有评论:

发表评论

VS Code下cmake, c++编译,调试环境的构成步骤

1   下载必须extension      按[Ctrl+Shift+X]打开extension窗口,选择安装"C/C++", "CMake", "CMake Tools" 2   在VSCode下打开作业目录 ...