python support

4 views
Skip to first unread message

AJ Friend

unread,
Jun 26, 2013, 5:15:40 PM6/26/13
to element...@googlegroups.com
Hi,

I'm having trouble getting the python support to work. Here's the list of commands i'm running:

mkdir build
cd build
cmake -D USE_SWIG=ON ..
make
sudo make install

Then, in the build directory, I open the python interpreter and type

import elem

but I get the error

ImportError: No module named elem

(Should I make sure to remove older installations of elemental in /usr/local, or will the installer automatically take care of that?)

Thanks,
AJ


AJ Friend

unread,
Jun 26, 2013, 5:18:37 PM6/26/13
to element...@googlegroups.com
Ah, it looks like I need numpy 1.7. I'll try that.

AJ

Jack Poulson

unread,
Jun 26, 2013, 5:24:56 PM6/26/13
to AJ Friend, element...@googlegroups.com, Michael Grant
Hi AJ,

The Python libraries aren't currently installed by CMake (though this would be easy to fix). You should be able to use the Python interface directly from the build directory for now.

Jack


--
You received this message because you are subscribed to the Google Groups "elemental-maint" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elemental-mai...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

AJ Friend

unread,
Jun 26, 2013, 6:45:49 PM6/26/13
to Jack Poulson, element...@googlegroups.com, Michael Grant
Thanks. I've got it working now.

My next question: How would I get the python bindings working with
mpi? Is there a command similar to

mpirun -np 6 ./test

AJ

Jack Poulson

unread,
Jun 26, 2013, 6:49:31 PM6/26/13
to AJ Friend, element...@googlegroups.com, Michael Grant
Yes, you can use exactly that command as long as test is a Python script which calls Elemental appropriately.

Jack

Jack Poulson

unread,
Jun 26, 2013, 6:54:58 PM6/26/13
to Michael C. Grant, AJ Friend, element...@googlegroups.com
This is a good point.

As for interactive parallel sessions, I'm surprised that their isn't a modified Python interpreter which broadcasts each command from the root process.

Jack


On Wed, Jun 26, 2013 at 3:52 PM, Michael C. Grant <m...@cvxr.com> wrote:
Obviously that means you can't use MPI in an interactive session. But of course, you can always debug your DistMatrix code in single-processor mode; i.e., without mpirun.

Jack Poulson

unread,
Jun 26, 2013, 7:20:54 PM6/26/13
to Michael C. Grant, AJ Friend, element...@googlegroups.com
It looks like it does. Good to know!

Jack


On Wed, Jun 26, 2013 at 3:56 PM, Michael C. Grant <m...@cvxr.com> wrote:
Reply all
Reply to author
Forward
0 new messages