... | ... | @@ -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".
|
|
|
|
|
|
|
|
|
[[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.
|
|
|
|
|
|
|
|
|
[[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:
|
... | ... | @@ -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
|
|
|
|
|
|
|
|
|
[[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.
|
|
|
|
|
|
|
|
|
[[pics/compile_clapack_4.png]]
|
|
|
![pic4](pics/compile_clapack_4.png)
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
[[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".
|
|
|
|
|
|
|
|
|
[[pics/compile_trilinos_8.png]]
|
|
|
![pic7](pics/compile_trilinos_8.png)
|
|
|
|
|
|
|
|
|
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.
|
... | ... | @@ -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
|
|
|
|
|
|
|
|
|
[[pics/compile_clapack_6.png]]
|
|
|
![pic9](pics/compile_clapack_6.png)
|
|
|
|
|
|
|
|
|
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: |
|
|
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.
|
|
|
|
|
|
|
|
|
[[pics/compile_trilinos_2.png]]
|
|
|
![pic11](pics/compile_trilinos_2.png)
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
[[pics/compile_zoltan_10.png]]
|
|
|
![pic13](pics/compile_zoltan_10.png)
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
[[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.
|
|
|
|
|
|
|
|
|
[[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).
|
|
|
|
|
|
|
|
|
[[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.
|
... | ... | @@ -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.
|
|
|
|
|
|
|
|
|
[[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.
|
|
|
|
|
|
|
|
|
[[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.
|
... | ... | @@ -200,25 +200,25 @@ Then click "Configure" and "Generate". |
|
|
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".
|
|
|
|
|
|
|
|
|
[[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.
|
|
|
|
|
|
|
|
|
[[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.
|
|
|
|
|
|
|
|
|
[[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:
|
... | ... | @@ -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
|
|
|
|
|
|
|
|
|
[[pics/compile_trilinos_12.png]]
|
|
|
![pic23](pics/compile_trilinos_12.png)
|
|
|
|
|
|
|
|
|
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.
|
... | ... | |