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 Aug 28, 2017 by Kirill Terekhov's avatar Kirill Terekhov
Hide whitespace changes
Inline Side-by-side
0206-Compilation-PETSc-Windows.md
View page @ 98fc6a43
...@@ -60,7 +60,7 @@ Now switch to the petsc_source_dir directory. Type `bin/win32fe/win32fe.exe cl` ...@@ -60,7 +60,7 @@ Now switch to the petsc_source_dir directory. Type `bin/win32fe/win32fe.exe cl`
[[pics/compile_petsc_4.png]] [[pics/compile_petsc_4.png]]
Now for win32fe.exe to be accessable from console type `export PATH="$PATH:\`pwd\`/bin/win32fe"`. Check that you can run win32fe from console Now for win32fe.exe to be accessable from console type ``export PATH="$PATH:`pwd`/bin/win32fe"``. Check that you can run win32fe from console
[[pics/compile_petsc_5.png]] [[pics/compile_petsc_5.png]]
...@@ -76,13 +76,13 @@ Now we will run PETSc configure script. We will have to tell it where to find Mi ...@@ -76,13 +76,13 @@ Now we will run PETSc configure script. We will have to tell it where to find Mi
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. 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.
Be patient since configuration script takes quite a time. Once finished PETSc script will provide you with some information on build options. Be patient since configuration script takes quite a time. Once finished, PETSc script will provide you with some information on build options.
[[pics/compile_petsc_6.png]] [[pics/compile_petsc_6.png]]
Copy and enter make command with PETSC_ARCH and PETSC_DIR as script output suggests you. You have to wait quite a while again while PETSc library is being built. Once finished it will suggest you to run tests. Copy and enter make command with PETSC_ARCH and PETSC_DIR as script output suggests you. You have to wait quite a while again while PETSc library is being built. Once finished, it will suggest you to run tests.
[[pics/compile_petsc_7.png]] [[pics/compile_petsc_7.png]]
......
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