... | @@ -68,8 +68,9 @@ Now for win32fe.exe to be accessable from console type `export PATH="$PATH:\`pwd |
... | @@ -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:
|
|
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.
|
|
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.
|
... | | ... | |