[Tutor] OpenMP
Evert Rol
evert.rol at gmail.com
Sat Oct 9 19:07:49 CEST 2010
> Hi,
> I have searched about how to use openMP using python and I couldn't fine any helpful info. anyone can help me on this.
No openMP, but iPython could do what you want (parallel and some distributed computing): http://ipython.scipy.org/doc/stable/html/
Evert
>
> My idea is that to use the different processer core for each section.
> for ex.
> lets say I have two loops and I want to test in which processer go through.
> ## core one should handle this
> a=[]
> for I in range (100):
> s= 10*I
> a.append( s)
>
> ## core two should handle this
> b=[]
> for f in range (100):
> h= 10*f
> b.append( h)
>
> ## collecting the data in one data file
> data=[a, b]
>
> my question is how to do that and is it possible in python to go from line to line after give the order to core one to process than we go to next core for the second process..
>
> Really interesting to speed up the process based on no of CPUs that we have using python.
> Looking forward to seeing your suggestions,
> Best regards,
> Ahmed
> _______________________________________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
More information about the Tutor
mailing list