Two separate issues here...

1) Regarding mpi4py, as it is based on the C API for MPI, it does not
have complex support natively. Of course, you could use

COMPLEX = MPI.DOUBLE.Create_contiguous(2)

and then the new 'COMPLEX' datatype will likely work for communicating
arrays with (double precision) complex entries.

1) Regarding petsc4py, the support for complex numbers is not ready
yet. The big issue is that Cython does not natively support them.
Rather than hacking petsc4py for complex support, I would prefer to
spend my time on hacking Cython to enable good complex support.
However, if there is a strong need for petsc4py+complex, I could work
on providing a patch to make it work.



Now a request to the Cython folks,

Could we create a branch 'cython-devel-complex' for start working on
good complex support?
This way I could push my preliminary work on this, all you can review
my progress, and other users can pull and build petsc4py with complex
support...



On Mon, Feb 16, 2009 at 1:17 PM, Barry Smith <[email protected]> wrote:
>
>
> Begin forwarded message:
>
> From: Wonseok Shin <[email protected]>
> Date: February 15, 2009 9:44:08 PM CST
> To: petsc-maint Maintenance <[email protected]>
> Cc: [email protected]
> Subject: Fwd: [psc.edu #16673] Fwd: [PETSC #19028] PETSc and Python
> Dear PETSc developers,
> I have received the following quoted email from the PETSc installer of
> BIgben, PSC.
> Is it true that mpi4py and petsc4py cannot be used with PETSc built for
> complex numbers?  Is there any workaround?
>
> Regards,
> Wonseok Shin
> Ph.D candidate
> Department of Electrical Engineering, Stanford University
> [email protected]
>
> Begin forwarded message:
>
> From: "Rick Costa via RT" <[email protected]>
> Date: February 15, 2009 8:22:21 AM PST
> To: [email protected]
> Subject: Re: [psc.edu #16673] Fwd: [PETSC #19028] PETSc and Python
> Reply-To: [email protected]
>
>
> ---------- Forwarded message ----------
> Date: Fri, 13 Feb 2009 01:50:27 -0500
> From: David O'Neal <[email protected]>
> To: R.F. Costa <[email protected]>
> Subject: Re: PETsc additions
>
> Hi Rick.
>
> I've run into a problem with the build requested by the user. Support for
> Python
> features is incompatible with the complex data type...
>
> *********************************************************************************
>          UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for
> details):
> -----------------------------------------------------------------------------------
> Cannot use mpi4py with complex numbers it is not coded for this capability
> *********************************************************************************
>
> At 08:21 AM 2/10/2009 -0500, you wrote:
>
> Dave
>
> Is it possible to make these additions to PETSc? Have you had a chance
>
> to install the bug fix to PETSc? Thanks.
>
> Rick
>
> ---------- Forwarded message ----------
>
> Date: Tue, 10 Feb 2009 07:58:55 -0500 (EST)
>
> From: Wonseok Shin via RT <[email protected]>
>
> Subject: [psc.edu #16673] Fwd: [PETSC #19028] PETSc and Python
>
> Tue Feb 10 07:58:55 2009: Request 16673 was acted upon.
>
> Transaction: Ticket created by [email protected]
>
>      Queue: Remarks
>
>    Subject: Fwd: [PETSC #19028] PETSc and Python
>
>      Owner: Nobody
>
> Requestors: [email protected]
>
>     Status: new
>
> Ticket <URL: https://tickets.psc.edu/Ticket/Display.html?id=16673 >
>
>
>
> Dear Rick,
>
> I am Wonseok Shin using bigben.
>
> I would like to distribute input data to my PETSc program using
>
> Python.  I asked PETSc developers how to do that, and they sent me the
>
> email quoted below.
>
> Basically, the Python packages called mpi4py and petsc4py should be
>
> installed, and they said that this can be done by configuring PETSc
>
> with the options written in the quoted email.
>
> Is it possible to install mpi4py and petsc4py?  Could you forward this
>
> email to the PETSc or Python installer of bigben?
>
>
> Best regards,
>
> Wonseok Shin
>
> Ph.D candidate
>
> Department of Electrical Engineering, Stanford University
>
> [email protected]
>
>
>
> Begin forwarded message:
>
> From: Matthew Knepley <[email protected]>
>
> Date: February 10, 2009 4:39:57 AM PST
>
> To: Wonseok Shin <[email protected]>
>
> Cc: petsc-maint Maintenance <[email protected]>
>
> Subject: Re: [PETSC #19028] PETSc and Python
>
> Reply-To: [email protected]
>
> You can use mpi4py and petsc4py. They both can be automatically
>
> installed by configure:
>
> --download-petsc4py --download-mpi4py
>
> They have a lot of documentation associated with them and examples.
>
>  Matt
>
> On Tue, Feb 10, 2009 at 5:42 AM, Wonseok Shin <[email protected]>
>
> wrote:
>
> Dear PETSc developers,
>
> I am interested in the interaction of PETSc and Python.  Is it
>
> possible to
>
> distribute data from Python to PETSc and vice versa?  I know how to
>
> do this
>
> for a single process, but don't know for multiple processes.
>
> If I need some Python MPI module, could you recommend a specific
>
> one that
>
> works well with PETSc?
>
>
> Best regards,
>
> Wonseok Shin
>
> Ph.D candidate
>
> Department of Electrical Engineering, Stanford University
>
> [email protected]
>
>
>
>
>
>
>
> --
>
> 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
>
>
>
> Dear Rick,
>
> I am Wonseok Shin using bigben.
>
> I would like to distribute input data to my PETSc program using Python.  I
> asked PETSc developers how to do that, and they sent me the email quoted
> below.
>
> Basically, the Python packages called mpi4py and petsc4py should be
> installed, and they said that this can be done by configuring PETSc with the
> options written in the quoted email.
>
> Is it possible to install mpi4py and petsc4py?  Could you forward this email
> to the PETSc or Python installer of bigben?
>
>
> Best regards,
>
> Wonseok Shin
>
> Ph.D candidate
>
> Department of Electrical Engineering, Stanford University
>
> <mailto:[email protected]>[email protected]
>
>
>
> Begin forwarded message:
>
> From: Matthew Knepley
> <<mailto:[email protected]>[email protected]>
>
> Date: February 10, 2009 4:39:57 AM PST
>
> To: Wonseok Shin <<mailto:[email protected]>[email protected]>
>
> Cc: petsc-maint Maintenance
> <<mailto:[email protected]>[email protected]>
>
> Subject: Re: [PETSC #19028] PETSc and Python
>
> Reply-To: <mailto:[email protected]>[email protected]
>
> You can use mpi4py and petsc4py. They both can be automatically
>
> installed by configure:
>
> --download-petsc4py --download-mpi4py
>
> They have a lot of documentation associated with them and examples.
>
>  Matt
>
> On Tue, Feb 10, 2009 at 5:42 AM, Wonseok Shin
> <<mailto:[email protected]>[email protected]> wrote:
>
> Dear PETSc developers,
>
> I am interested in the interaction of PETSc and Python.  Is it possible to
>
> distribute data from Python to PETSc and vice versa?  I know how to do this
>
> for a single process, but don't know for multiple processes.
>
> If I need some Python MPI module, could you recommend a specific one that
>
> works well with PETSc?
>
>
> Best regards,
>
> Wonseok Shin
>
> Ph.D candidate
>
> Department of Electrical Engineering, Stanford University
>
> <mailto:[email protected]>[email protected]
>
>
>
>
>
>
>
> --
>
> 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
>
>
>
> Our PETSc installer has created a new version of PETSc. You can run it
> by issuing the command
>
>   module load petsc/3.0.0-p3.complex
>
> I am not sure what it includes. I do not think it includes the Python
> additions you requested, because they are incompatible with the complex
> data type. I have asked for clarification on what this new version
> includes.
>
> Rick Costa
> PSC User Services
>
>
>
>
>



-- 
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to