Re: [petsc-users] Petsc with Windows
On Wed, Nov 30, 2016 at 6:03 AM, Boris Kauswrote: > > > This is probably a better choice than Cygwin going forward. > > > > https://msdn.microsoft.com/en-us/commandline/wsl/about > > > > I don't know to what extent PETSc users have experimented with this > > feature, but it should make it easier to build and distribute PETSc. > We have tried this in Mainz, and PETSc (with MUMPS/SUPERLU_DIST/mpich) > compiles out of the box with the new command-line option under windows 10. > It’s not as fast as linux/mac, but does the job > Good to hear this, Boris :) I'm very interested, do you know how much the performance hit is? Perhaps by using BLAS from MKL it could be faster? Do you know what compiler is being used? Thanks!
Re: [petsc-users] Petsc with Windows
Hi Elaine, The PETSc configured/built in Cygwin can be normally used outside of it. It can either be statically linked with your software, or linked as a .DLL and deployed normally :). On Mon, Nov 28, 2016 at 1:49 PM, Elaine Tangwrote: > Hi, > > I am developing some software on windows that would like to utilize petsc > library. Currently I have petsc library configured on cygwin on my windows > machine. > > Is there any binary of petsc for windows so that the software that I > develop will be more portable and can be run on other windows machine as > well? > > Thanks! > -- > Elaine Tang >
Re: [petsc-users] using DMDA with python
Matt, Do you know if there is any example of solving Navier Stokes using a staggered approach by using a different DM object such as DMPlex? Thanks, Edson On Tue, Oct 4, 2016 at 11:12 PM, Matthew Knepleywrote: > On Tue, Oct 4, 2016 at 9:02 PM, Somdeb Bandopadhyay > wrote: > >> Dear all, >> I want to write a solver for incompressible navier stokes >> using python and I want to use PETsc (particularly dmda & ksp) for this. >> May I know if this type of work is feasible/already done? >> > > How do you plan to discretize your system? DMDA supports only collocation > discretizations, so some sort of penalty for pressure would > have to be employed. > > Thanks, > > Matt > > >> I intend to run my solver in a cluster and so am slightly >> concerned about the performance if I use python with petsc. >> My deepest apologies if this mail of mine caused you any >> inconvenience. >> >> Somdeb >> > > > > -- > What most experimenters take for granted before they begin their > experiments is infinitely more interesting than any results to which their > experiments lead. > -- Norbert Wiener >
Re: [petsc-users] Build PETSc as shared library on Windows ("traditional" build or CMake)
Of course, this is what I did (I'm building it for MSVC 2010, but it should be similar for other versions): - call `setenv.cmd` (or `vcvarsall`) to configure the compiler environment (this should be configured at all steps) - enter Cygwin, call `configure` normally from inside Cygwin, adding `--with-shared-libraries=1` (the output says "shared libraries: disabled", but no problem) - modify PETScConfig.cmake to replace `/cygdrive/c/` with `C:/` - if needed, change `iomp5md` to `libiomp5md` - add `add_definitions(-DPETSC_USE_SHARED_LIBRARIES=1)` after the project line of CMakeLists.txt - outside of Cygwin, call cmake like this, from inside the "arch-mswin-c-opt" directory: cmake .. -G "Visual Studio 10 2010 Win64" -DPETSC_CMAKE_ARCH=arch-mswin-c-opt -DCMAKE_C_FLAGS="-wd4996" -DBUILD_SHARED_LIBS:BOOL=ON - build the generated PETSc.sln from inside Visual Studio On Wed, Mar 16, 2016 at 5:27 PM, Barry Smith <bsm...@mcs.anl.gov> wrote: > > > On Mar 16, 2016, at 3:22 PM, E. Tadeu <e.ta...@gmail.com> wrote: > > > > Thanks Satish, > > > > Just to let you know, with a few minor modifications and extra > parameters, I've managed to build it using configure under Cygwin, and > then, outside cygwin, running non-cygwin cmake inside the "arch-..." > folder, targeting MSVC. > > Awesome, can you send any changes you needed to make to PETSc so other > users can benefit? > > Barry > > > > > > > On Mon, Mar 14, 2016 at 6:31 PM, Satish Balay <ba...@mcs.anl.gov> wrote: > > you could try precompiled petsc from > > http://www.msic.ch/Downloads/Software > > [its old 3.5 version though] > > > > We don't have any changes wrt .dlls or cmake on windows.. > > > > Satish > > > > On Mon, 14 Mar 2016, E. Tadeu wrote: > > > > > Hi, > > > > > > What is the current status of building PETSc as a shared library on > > > Windows? It seems non-trivial: `--with-shared-libraries=1` won't work, > > > since Cygwin's `ld` fails, and `win32fe` also fails. > > > > > > Also, what is the status of building PETSc with CMake on Windows? > Perhaps > > > through using CMake it would be easier to generate the .DLL's, but I > > > couldn't find documentation on how to do this. > > > > > > > > > Thanks! > > > Edson > > > > > > > > >
Re: [petsc-users] Build PETSc as shared library on Windows ("traditional" build or CMake)
Thanks Satish, Just to let you know, with a few minor modifications and extra parameters, I've managed to build it using configure under Cygwin, and then, outside cygwin, running non-cygwin cmake inside the "arch-..." folder, targeting MSVC. On Mon, Mar 14, 2016 at 6:31 PM, Satish Balay <ba...@mcs.anl.gov> wrote: > you could try precompiled petsc from > http://www.msic.ch/Downloads/Software > [its old 3.5 version though] > > We don't have any changes wrt .dlls or cmake on windows.. > > Satish > > On Mon, 14 Mar 2016, E. Tadeu wrote: > > > Hi, > > > > What is the current status of building PETSc as a shared library on > > Windows? It seems non-trivial: `--with-shared-libraries=1` won't work, > > since Cygwin's `ld` fails, and `win32fe` also fails. > > > > Also, what is the status of building PETSc with CMake on Windows? > Perhaps > > through using CMake it would be easier to generate the .DLL's, but I > > couldn't find documentation on how to do this. > > > > > > Thanks! > > Edson > > > >
[petsc-users] Build PETSc as shared library on Windows ("traditional" build or CMake)
Hi, What is the current status of building PETSc as a shared library on Windows? It seems non-trivial: `--with-shared-libraries=1` won't work, since Cygwin's `ld` fails, and `win32fe` also fails. Also, what is the status of building PETSc with CMake on Windows? Perhaps through using CMake it would be easier to generate the .DLL's, but I couldn't find documentation on how to do this. Thanks! Edson