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
  • 0207 Compilation Trilinos Windows

0207 Compilation Trilinos Windows · Changes

Page history
change pic link authored Aug 30, 2018 by Kirill Terekhov's avatar Kirill Terekhov
Hide whitespace changes
Inline Side-by-side
0207-Compilation-Trilinos-Windows.md
View page @ 9c6e1e0b
...@@ -16,13 +16,13 @@ Go to [http://icl.cs.utk.edu/lapack-for-windows/clapack/index.html](http://icl.c ...@@ -16,13 +16,13 @@ Go to [http://icl.cs.utk.edu/lapack-for-windows/clapack/index.html](http://icl.c
Unarchive CLAPACK into "clapack_source_path" and create "clapack_build_path". Open cmake-gui application and enter clapack_source_path into the field to the right from "Where is the source code" text and clapack_build_path into the field to the right from "Where to build the binaries". Unarchive CLAPACK into "clapack_source_path" and create "clapack_build_path". Open cmake-gui application and enter clapack_source_path into the field to the right from "Where is the source code" text and clapack_build_path into the field to the right from "Where to build the binaries".
[[pics/compile_clapack_1.png]] ![pic1](pics/compile_clapack_1.png)
Click "Configure" and select Visual Studio as your compiler, compiler should be the same as was for INMOST and would be for Trilinos. Click "Configure" and select Visual Studio as your compiler, compiler should be the same as was for INMOST and would be for Trilinos.
[[pics/compile_clapack_2.png]] ![pic2](pics/compile_clapack_2.png)
Create folder clapack_build_path/install for the place where libraries and headers will be installed later and in CMake click "Add Entry" button and enter: Create folder clapack_build_path/install for the place where libraries and headers will be installed later and in CMake click "Add Entry" button and enter:
...@@ -31,37 +31,37 @@ Create folder clapack_build_path/install for the place where libraries and heade ...@@ -31,37 +31,37 @@ Create folder clapack_build_path/install for the place where libraries and heade
`CMAKE_INSTALL_PREFIX` of type `PATH` with clapack_build_path/install `CMAKE_INSTALL_PREFIX` of type `PATH` with clapack_build_path/install
[[pics/compile_clapack_3.png]] ![pic3](pics/compile_clapack_3.png)
Click "Configure" again and then click "Generate". Search for CLAPACK.sln file in clapack_build_path and open it. Click "Configure" again and then click "Generate". Search for CLAPACK.sln file in clapack_build_path and open it.
[[pics/compile_clapack_4.png]] ![pic4](pics/compile_clapack_4.png)
Once Visual Studio is open go to "Build/Configuration Manager". Once Visual Studio is open go to "Build/Configuration Manager".
[[pics/compile_zoltan_9.png]] ![pic5](pics/compile_zoltan_9.png)
And change "Debug" mode to "Release" mode. And change "Debug" mode to "Release" mode.
[[pics/compile_zoltan_10.png]] ![pic6](pics/compile_zoltan_10.png)
Now hit F7 button to compile CLAPACK library. After successful compilation go to "View/Solution Explorer". Now hit F7 button to compile CLAPACK library. After successful compilation go to "View/Solution Explorer".
[[pics/compile_trilinos_8.png]] ![pic7](pics/compile_trilinos_8.png)
In "Solution Explorer" right click on "INSTALL" project and click "Build". In "Solution Explorer" right click on "INSTALL" project and click "Build".
[[pics/compile_clapack_5.png]] ![pic8](pics/compile_clapack_5.png)
Now you are ready to compile Trilinos. Now you are ready to compile Trilinos.
...@@ -88,7 +88,7 @@ You will need to click "Add Entry" button and add three entries one after anothe ...@@ -88,7 +88,7 @@ You will need to click "Add Entry" button and add three entries one after anothe
`TPL_LAPACK_LIBRARIES` type `PATH` and provide path to clapack_build_path/install/lib/lapack.lib `TPL_LAPACK_LIBRARIES` type `PATH` and provide path to clapack_build_path/install/lib/lapack.lib
[[pics/compile_clapack_6.png]] ![pic9](pics/compile_clapack_6.png)
After that if you want to use Trilinos solver in parallel you should After that if you want to use Trilinos solver in parallel you should
...@@ -125,25 +125,25 @@ Then you should search for the following fields and switch them to ON: ...@@ -125,25 +125,25 @@ Then you should search for the following fields and switch them to ON:
Then click "Configure". After some time you should see that configuration completed successfully. Then click "Configure". After some time you should see that configuration completed successfully.
[[pics/compile_trilinos_1.png]] ![pic10](pics/compile_trilinos_1.png)
Then click "Generate" and look for Trilinos.sln file in trilinos_build_path. Then click "Generate" and look for Trilinos.sln file in trilinos_build_path.
[[pics/compile_trilinos_2.png]] ![pic11](pics/compile_trilinos_2.png)
Open it, then go to "Build/Configuration Manager". Open it, then go to "Build/Configuration Manager".
[[pics/compile_zoltan_9.png]] ![pic12](pics/compile_zoltan_9.png)
And switch from "Debug" mode to "Release" mode. And switch from "Debug" mode to "Release" mode.
[[pics/compile_zoltan_10.png]] ![pic13](pics/compile_zoltan_10.png)
Then Hit F7 button to compile Trilinos libraries. Then Hit F7 button to compile Trilinos libraries.
...@@ -152,19 +152,19 @@ Then Hit F7 button to compile Trilinos libraries. ...@@ -152,19 +152,19 @@ Then Hit F7 button to compile Trilinos libraries.
After some time you should see that compilation was almost successful but one project have failed. After some time you should see that compilation was almost successful but one project have failed.
[[pics/compile_trilinos_3.png]] ![pic14](pics/compile_trilinos_3.png)
This may happen due to some bug in the tested version of Trilinos. Go to "View/Error List" in menu bar. This may happen due to some bug in the tested version of Trilinos. Go to "View/Error List" in menu bar.
[[pics/compile_trilinos_4.png]] ![pic15](pics/compile_trilinos_4.png)
Then double click on the first error illustrated on picture below (The second error does not prevent compilation, ignore it). Then double click on the first error illustrated on picture below (The second error does not prevent compilation, ignore it).
[[pics/compile_trilinos_5.png]] ![pic16](pics/compile_trilinos_5.png)
Teuchos_as.hpp file should open up on line 614. Replace "t" variable with "in" variable and hit F7 again. Teuchos_as.hpp file should open up on line 614. Replace "t" variable with "in" variable and hit F7 again.
...@@ -173,13 +173,13 @@ Teuchos_as.hpp file should open up on line 614. Replace "t" variable with "in" v ...@@ -173,13 +173,13 @@ Teuchos_as.hpp file should open up on line 614. Replace "t" variable with "in" v
After some continuous time compilation will end successfully for all the projects. After some continuous time compilation will end successfully for all the projects.
[[pics/compile_trilinos_6.png]] ![pic17](pics/compile_trilinos_6.png)
If you will look into trilinos_build_path/packages directory you will see a lot of libraries located separately. If you will look into trilinos_build_path/packages directory you will see a lot of libraries located separately.
[[pics/compile_trilinos_7.png]] ![pic18](pics/compile_trilinos_7.png)
Since it wouldn't be comfortable to supply all this libraries one at a time, we should run installation script. Since it wouldn't be comfortable to supply all this libraries one at a time, we should run installation script.
...@@ -200,25 +200,25 @@ Then click "Configure" and "Generate". ...@@ -200,25 +200,25 @@ Then click "Configure" and "Generate".
Return to Visual Studio. There click "View/Solution Explorer". Return to Visual Studio. There click "View/Solution Explorer".
[[pics/compile_trilinos_8.png]] ![pic19](pics/compile_trilinos_8.png)
In "Solution Explorer" right click on "INSTALL" project and click "Build". In "Solution Explorer" right click on "INSTALL" project and click "Build".
[[pics/compile_trilinos_9.png]] ![pic20](pics/compile_trilinos_9.png)
In output you should see that all required header files and libraries were copied to trilinos_build_path/install directory. In output you should see that all required header files and libraries were copied to trilinos_build_path/install directory.
[[pics/compile_trilinos_10.png]] ![pic21](pics/compile_trilinos_10.png)
Now you have to provide information about Trilinos to INMOST library. Open CMake again and by clicking to black triangle at the right end of the field after "Where to build the binaries" and choose your build directory for INMOST. Now you have to provide information about Trilinos to INMOST library. Open CMake again and by clicking to black triangle at the right end of the field after "Where to build the binaries" and choose your build directory for INMOST.
[[pics/compile_trilinos_11.png]] ![pic22](pics/compile_trilinos_11.png)
Find and activate `USE_SOLVER_TRILINOS` checkbox, then click "Add Entry" and enter the following: Find and activate `USE_SOLVER_TRILINOS` checkbox, then click "Add Entry" and enter the following:
...@@ -227,13 +227,13 @@ Find and activate `USE_SOLVER_TRILINOS` checkbox, then click "Add Entry" and ent ...@@ -227,13 +227,13 @@ Find and activate `USE_SOLVER_TRILINOS` checkbox, then click "Add Entry" and ent
`TRILINOS_PATH` of type `PATH` with trilinos_build_path/install `TRILINOS_PATH` of type `PATH` with trilinos_build_path/install
[[pics/compile_trilinos_12.png]] ![pic23](pics/compile_trilinos_12.png)
Then when you click "Configure" CMake should provide you with information on Trilinos: Then when you click "Configure" CMake should provide you with information on Trilinos:
[[pics/compile_trilinos_13.png]] ![pic24](pics/compile_trilinos_13.png)
Click "Generate" and now you can compile INMOST with Trilinos. In later times it may happen that you compile INMOST and encounter unresolved externals related to Trilinos. This happens due to some misconfiguration of Trilinos by CMake that results in all *.c files not being compiled. In order to fix it just wipe out all the trilinos_build_path directory and try to build everything from scratch. Click "Generate" and now you can compile INMOST with Trilinos. In later times it may happen that you compile INMOST and encounter unresolved externals related to Trilinos. This happens due to some misconfiguration of Trilinos by CMake that results in all *.c files not being compiled. In order to fix it just wipe out all the trilinos_build_path directory and try to build everything from scratch.
......
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