Compiling PETSc with Visual Studio 2008

Farshid Mossaiby mossaiby at yahoo.com
Sat Apr 26 03:31:03 CDT 2008


Dear Satish,

You were absolutely right. After caching a password
using MPICH tool, "make test" works fine.

Now, there are some other issues. I am mostly
interested in ksp examples. In
$PETSC_DIR/src/ksp/ksp/test:

1. When I "make ex2" it gives me an error:

make: *** No rule to make target `ex2.o', needed by
`ex2'.  Stop.

2. "make ex1" works ok, but:

$ mpiexec -np 2 ./ex1 -pc_type jacobi
-ksp_monitor_short -ksp_gmres_cgs_refin
ement_type refine_always
[1]PETSC ERROR: --------------------- Error Message
------------------------------------
[1]PETSC ERROR: Arguments must have same
communicators!
[1]PETSC ERROR: Different communicators in the two
objects: Argument # 1 and 2!
[1]PETSC ERROR:
------------------------------------------------------------------------
[1]PETSC ERROR: Petsc Release Version 2.3.3, Patch 12,
Thu Apr 10 15:41:55 CDT 2008 HG revision:
48778aa37f228d65b9e8dd6866e074a5a4a9b77d
[1]PETSC ERROR: See docs/changes/index.html for recent
updates.
[1]PETSC ERROR: See docs/faq.html for hints about
trouble shooting.
[1]PETSC ERROR: See docs/index.html for manual pages.
[1]PETSC ERROR:
------------------------------------------------------------------------
[1]PETSC ERROR:
C:\Cygwin\home\Administrator\petsc-2.3.3-p12\src\ksp\ksp\examples\tests\ex1.exe
on a cygwin-c- named PC02 by Administrator Sat Jun 14
11:59:4
6 2008
[1]PETSC ERROR: Libraries linked from
/home/Administrator/petsc-2.3.3-p12/lib/cygwin-c-debug-mpi
[1]PETSC ERROR: Configure run at Tue Jun 10 17:58:08
2008
[1]PETSC ERROR: Configure options --with-cc="win32fe
cl --nodetect" --with-fc=0 --with-ar="win32fe lib
--nodetect" PETSC_ARCH=cygwin-c-debug-mpi --with-mpi=1
--
with-mpi-dir="/cygdrive/c/Program Files/MPICH2/"
--download-c-blas-lapack=../f2cblaslapack.tar.gz
--useThreads=0 --with-shared=0
[1]PETSC ERROR:
------------------------------------------------------------------------
[1]PETSC ERROR: KSPSetOperators() line 277 in
src/ksp/ksp/interface/C:\Cygwin\home\ADMINI~1\PETSC-~1.3-P\src\ksp\ksp\INTERF~1\itcreate.c
[1]PETSC ERROR: main() line 40 in
src/ksp/ksp/examples/tests/C:\Cygwin\home\ADMINI~1\PETSC-~1.3-P\src\ksp\ksp\examples\tests\ex1.c
application called MPI_Abort(MPI_COMM_WORLD, 80) -
process 1
job aborted:
rank: node: exit code[: error message]
0: pc02: 80
1: pc02: 80: application called
MPI_Abort(MPI_COMM_WORLD, 80) - process 1

Any hint on this one?

Thanks in advance,
Farshid Mossaiby

--- Satish Balay <balay at mcs.anl.gov> wrote:

> On Wed, 23 Apr 2008, Farshid Mossaiby wrote:
> 
> > I built PETSc with this command line after
> installing
> > latest MPICH2:
> > 
> > ./config/configure.py --with-cc='win32fe cl
> > --nodetect' --with-fc=0 --with-ar='win32fe lib
> > --nodetect' PETSC_ARCH=cygwin-c-debug-mpi
> --with-mpi=1
> > --with-mpi-dir=/cygdrive/c/Program\ Files/MPICH2/
> > --download-c-blas-lapack=../f2cblaslapack.tar.gz
> > 
> > It compiles OK but stops after "make all test":
> > 
> > ...
> > Completed building libraries
> > =========================================
> > Shared libraries disabled
> > Running test examples to verify correct
> installation
> > 
> > ... and I have to press Ctrl-C to quit. Have I
> done
> > anything wrong?
> 
> This MPI requires additional *settings* to run
> codes. I.e automated
> testing won't work. Try running manually.
> 
> cd src/ksp/ksp/examples/tutorials
> make ex2
> mpiexec -n 2 ./ex2
> 
> 
> [mostlikely - mpiexec need to authenicate the
> windows way - before
> being able to launch a job]
> 
> Satish
> 
> 



      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ




More information about the petsc-dev mailing list