Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • I INMOST
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Terekhov
  • INMOST
  • Wiki
  • 0206 Compilation PETSc Windows

0206 Compilation PETSc Windows · Changes

Page history
Updated 0206 Compilation PETSc Windows (markdown) authored Feb 06, 2015 by Kirill Terekhov's avatar Kirill Terekhov
Show whitespace changes
Inline Side-by-side
0206-Compilation-PETSc-Windows.md
View page @ bc880834
......@@ -68,8 +68,9 @@ Now for win32fe.exe to be accessable from console type `export PATH="$PATH:\`pwd
Now we will run PETSc configure script. We will have to tell it where to find Microsoft MPI library. Typically it is installed to "C:\Program Files\Microsoft HPC Pack 2012\". Assuming this folder is correct type the command to run PETSc configuration script:
`./configure --with-cc="win32fe cl" --with-fc=0 --download-f2cblaslapack --with-mpi-include="/cygdrive/c/Program Files/Microsoft HPC Pack 2012/Inc/" --with-mpi-lib=['/cygdrive/c/Program Files/Microsoft HPC Pack 2012/Lib/amd64/msmpi.lib'] --with-mpi-mpiexec="/cygdrive/c/Program Files/Microsoft HPC Pack 2012/Bin/mpiexec.exe" --with-debugging=0 -CFLAGS='-O2 -MD -wd4996' -CXXFLAGS='-O2 -MD -wd4996'`
``
./configure --with-cc="win32fe cl" --with-fc=0 --download-f2cblaslapack --with-mpi-include="/cygdrive/c/Program Files/Microsoft HPC Pack 2012/Inc/" --with-mpi-lib=['/cygdrive/c/Program Files/Microsoft HPC Pack 2012/Lib/amd64/msmpi.lib'] --with-mpi-mpiexec="/cygdrive/c/Program Files/Microsoft HPC Pack 2012/Bin/mpiexec.exe" --with-debugging=0 -CFLAGS='-O2 -MD -wd4996' -CXXFLAGS='-O2 -MD -wd4996'
``
Please note that there are also flags provided for compilers. First `-O2` flag tells compiler to optimize everything, then `-MD` tells which runtime library should be used. It is very important that runtime libraries match across all of your libraries, otherwise your final executable will not compile or running it will result in segmentation faults or heap corruption which will be really hard to resolve. Flag for runtime library provided here should match with flag in your final application as well as flag in INMOST library. The `-wd4996` flag suppress specific compiler warning from output.
......
Clone repository
  • 0100 Compilation
  • 0200 Compilation Windows
  • 0201 Obtain MSVC
  • 0202 Obtain MSMPI
  • 0203 Compilation INMOST Windows
  • 0204 Compilation ParMETIS Windows
  • 0205 Compilation Zoltan Windows
  • 0206 Compilation PETSc Windows
  • 0207 Compilation Trilinos Windows
  • 0400 Compilation Linux
  • 0401 Install MPI
  • 0402 Compilation INMOST Linux
  • 0403 Compilation PETSc Linux
  • 0404 Compilation Trilinos Linux
  • 0405 Compilation ParMETIS Linux
View All Pages