[petsc-dev] [petsc-users] Eigenvalue solver method in Petsc

2013-03-18 Thread Farshid Mossaiby
s to windows native python - but then - petsc configure >doesn't work with it. > >Also - I don't see any editors [vi/emacs] in msys - presumably one is >expected to use MS native mostly [including for python?] > >Satish > > > -- next part -- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130318/96f9dadc/attachment-0001.html>

[petsc-dev] bad code that needs fixing

2013-03-18 Thread Barry Smith
device must be cast to int before being passed to cudaSetDevice(). cudaSetDevice(device); On Mar 17, 2013, at 3:36 PM, Paul Mullowney wrote: > Here's a patch following the instructions on the wiki for small patches. > > -Paul >> { >> int size; >> ierr = MPI_Comm_size(PETSC_COMM

[petsc-dev] Build error in Cygwin

2013-03-18 Thread Chen Shapira
Hi , I'm building petsc in cygwin , and when running my configure command : ./config/configure.py --with-cc='win32fe cl' --with-fc='win32fe ifort' --with-cxx='win32fe cl' --with-mpi-dir="/cygdrive/C/Program Files (x86)/MPICH2" --download-f-blas-lapack=1 --with-clanguage=c --with-petsc-arch=arch-m

[petsc-dev] Build error in Cygwin

2013-03-18 Thread Jed Brown
= > > Could someone tell me how to continue ? > I've downloaded petsc-dev and its buildsystem using : hg clone > https://bitbucket.org/petsc/petsc-dev > > Please let me know how can I built it > Thanks > -- next part -- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130318/f936165c/attachment.html>

[petsc-dev] Build error in Cygwin

2013-03-18 Thread Chen Shapira
the error message told me to download the regular petsc copy, I need the petsc-dev copy (which I've obtained from bitbucket , as the official petsc web-instructions said) On Mon, Mar 18, 2013 at 3:27 PM, Jed Brown wrote: > Do what the error message says. > > On Mar 18, 2013 8:18 AM, "Chen Shapira

[petsc-dev] Build error in Cygwin

2013-03-18 Thread Jed Brown
;> > >> > === > >> > >> Could someone tell me how to continue ? > >> I've downloaded petsc-dev and its buildsystem using : hg clone > >> https://bitbucket.org/petsc/petsc-dev > >> > >> Please let me know how can I built it > >> Thanks > -- next part -- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130318/193889d7/attachment.html>

[petsc-dev] Build error in Cygwin

2013-03-18 Thread Chen Shapira
I understand now, Thanks Chen On Mon, Mar 18, 2013 at 3:48 PM, Jed Brown wrote: > On Mon, Mar 18, 2013 at 8:41 AM, Chen Shapira wrote: >> >> the error message told me to download the regular petsc copy, >> I need the petsc-dev copy (which I've obtained from bitbucket , as the >> official petsc w

[petsc-dev] PTScotch 6

2013-03-18 Thread Jose E. Roman
There is a new version of PTScotch. I tried configuring with --download-ptscotch=https://gforge.inria.fr/frs/download.php/31832/scotch_6.0.0_esmumps.tar.gz It works on Linux with the patch below (note the missing whitespace should have been fixed in 3.3). On Mac I had a compilation problem rela

[petsc-dev] [petsc-users] Eigenvalue solver method in Petsc

2013-03-18 Thread Satish Balay
On Mon, 18 Mar 2013, Farshid Mossaiby wrote: > Hi, > ? > Can this help? > ? > https://bitbucket.org/monaka/msys-python nope - for one it appears to be abandoned by author >> Masaki Muranaka stopped following monaka/msys-python 2012-04-02 Masaki Muranaka pushed to monaka/msys-python 2012-04-0

[petsc-dev] bad code that needs fixing

2013-03-18 Thread Paul Mullowney
>>> } >>>} >>> >>> size int should be PETScMPIInt and device int cannot be an int if it is >>> passed to PetscOptionsGetInt which requires a PetscInt. >>> >>> >> <0001-cuda-device-selection.patch> -- next part -- An embedded and charset-unspecified text was scrubbed... Name: 0002-cuda-device-selection.patch URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130318/852ed9a7/attachment.ksh>

[petsc-dev] bad code that needs fixing

2013-03-18 Thread Jose E. Roman
Also, rank should be PetscMPIInt as well as size. Jose El 18/03/2013, a las 20:54, Paul Mullowney escribi?: > Should have caught that. > -Paul > >>device must be cast to int before being passed to cudaSetDevice(). >> >> cudaSetDevice(device); >> >> On Mar 17, 2013, at 3:36 PM, Paul Mull

[petsc-dev] bad code that needs fixing

2013-03-18 Thread Paul Mullowney
;>>if (flg1) { >>>>> ierr = cudaSetDevice(device);CHKERRQ(ierr); >>>>>} >>>>> } >>>>> } >>>>> >>>>> size int should be PETScMPIInt and device int cannot be an int if it is >>>>> passed to PetscOptionsGetInt which requires a PetscInt. >>>>> >>>>> >>>> <0001-cuda-device-selection.patch> >> <0002-cuda-device-selection.patch> -- next part -- An embedded and charset-unspecified text was scrubbed... Name: 0003-cuda-device-selection.patch URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130318/a299aac7/attachment.ksh>

[petsc-dev] How to deal with OS-specific include paths?

2013-03-18 Thread Karl Rupp
Hi guys, some packages such as OpenCL and OpenGL may be located in different subfolders depending on which OS we're on: Mac OS: OpenCL/*.h andOpenGL/*.h other: CL/*.h andGL/*.h How is this properly translated into BuildSystem-specific package files? In opengl.py I only f

[petsc-dev] How to deal with OS-specific include paths?

2013-03-18 Thread Jed Brown
> -- next part -- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130318/2750488d/attachment-0001.html>

[petsc-dev] Why does configure ignore compiler output?

2013-03-18 Thread Jed Brown
.Configure/conftest.o -ldl Executing: /home/jed/usr/mpich-sun/bin/mpicc -o /tmp/petsc-NZgbtU/PETSc.Configure/conftest-PIC /tmp/petsc-NZgbtU/PETSc.Configure/conftest.o -ldl sh: Defined "UNUSED" to "__attribute((unused))" -- next part -- An

[petsc-dev] How to deal with OS-specific include paths?

2013-03-18 Thread Barry Smith
Apple really sucks: #if defined(__APPLE__) || defined(MACOSX) #include #include #include #else #include #include #endif OpenGL/gl.h doesn't mean the include is in the directory /usr/include/OpenGL it means that the OpenGL includes is in the OpenGL framework so cannot be dealt with in

[petsc-dev] How to deal with OS-specific include paths?

2013-03-18 Thread Karl Rupp
Hi, > We test each variant until we find one that works. I don't think there > is an automatic way to do that currently so you'd have to call > checkCompile() in sequence. Ok, thanks, I'll (try to) adapt the code from the OpenMP package checker then. > So, the question is: How to deal with

[petsc-dev] Why does configure ignore compiler output?

2013-03-18 Thread Matthew Knepley
l > sh: > Defined "UNUSED" to "__attribute((unused))" > > -- 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 -- next part -- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130318/42c76704/attachment.html>

[petsc-dev] How to deal with OS-specific include paths?

2013-03-18 Thread Karl Rupp
Hi, On 03/18/2013 08:06 PM, Barry Smith wrote: > >Apple really sucks: > > (...) > They even manage to make the official OpenCL headers inject this stuff. From opencl.h: #ifdef __APPLE__ #include #include #include #include #else #include #include #include #include #endif Okay, so re

[petsc-dev] Why does configure ignore compiler output?

2013-03-18 Thread Jed Brown
ignored -- next part -- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130318/50b9574d/attachment.html>

[petsc-dev] Why does configure ignore compiler output?

2013-03-18 Thread Matthew Knepley
esults to which their experiments lead. -- Norbert Wiener ------ next part -- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130318/a2d74bcc/attachment-0001.html>

[petsc-dev] Why does configure ignore compiler output?

2013-03-18 Thread Jed Brown
aybe those compilers die and we flip the switch in the new release. > What about a blacklist containing output that we do interpret as failure? -- next part -- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130318/4ce2f351/attachment.html>