<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content=text/html;charset=windows-1256>
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY id=MailContainerBody
style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-TOP: 15px" leftMargin=0
topMargin=0 CanvasTabStop="true" name="Compose message area">
<DIV><FONT face=Arial size=2>Hi, </FONT></DIV>
<DIV><FONT face=Arial size=2>I have searched about how to use openMP using
python and I couldn't fine any helpful info. anyone can help me on
this.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>My idea is that to use the different processer core
for each section. </FONT></DIV>
<DIV><FONT face=Arial size=2>for ex.</FONT></DIV>
<DIV><FONT face=Arial size=2>lets say I have two loops and I want to test in
which processer go through.</FONT></DIV>
<DIV><FONT face=Arial size=2>## core one should handle this </FONT></DIV>
<DIV><FONT face=Arial size=2>a=[]</FONT></DIV>
<DIV><FONT face=Arial size=2>for I in range (100):</FONT></DIV>
<DIV><FONT face=Arial size=2> s= 10*I</FONT></DIV>
<DIV><FONT face=Arial size=2> a.append( s)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>## core two should handle this</FONT></DIV>
<DIV>
<DIV><FONT face=Arial size=2>b=[]</FONT></DIV>
<DIV><FONT face=Arial size=2>for f in range (100):</FONT></DIV>
<DIV><FONT face=Arial size=2> h= 10*f</FONT></DIV>
<DIV><FONT face=Arial size=2> b.append( h)</FONT></DIV></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>## collecting the data in one data
file </FONT></DIV>
<DIV><FONT face=Arial size=2>data=[a, b]</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>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..</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Really interesting to speed up the process based on
no of CPUs that we have using python. </FONT></DIV>
<DIV><FONT face=Arial size=2>Looking forward to seeing your
suggestions,</FONT></DIV>
<DIV><FONT face=Arial size=2>Best regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>Ahmed</FONT></DIV></BODY></HTML>