Re: [Tutor] OpenMP

2010-10-11 Thread Stefan Behnel
Alan Gauld, 09.10.2010 19:50: Now, the bad news is that so far as I know the python interpreter does not expose its threading model to the OS to even if you use threads the interpreter itself will still be running on a single CPU core. :-( Python's threads are native system threads. They can ru

Re: [Tutor] OpenMP

2010-10-10 Thread Ahmed AL-Masri
Thanks a lots. it's really helpful,, I am reading it -- From: "Emile van Sebille" Sent: Sunday, October 10, 2010 11:51 PM To: Subject: Re: [Tutor] OpenMP On 10/9/2010 9:45 PM Ahmed AL-Masri said... Thanks for fast responding

Re: [Tutor] OpenMP

2010-10-10 Thread Emile van Sebille
On 10/9/2010 9:45 PM Ahmed AL-Masri said... Thanks for fast responding. I will try to use the threads and see how the performance would be.. actually I am using that for my artificial neural network and the problem is regarding to the ANN limitation when I used a big no of inputs. so one way to

Re: [Tutor] OpenMP

2010-10-09 Thread Ahmed AL-Masri
Thanks for fast responding. I will try to use the threads and see how the performance would be.. actually I am using that for my artificial neural network and the problem is regarding to the ANN limitation when I used a big no of inputs. so one way to overcome this problem is by distributing and

Re: [Tutor] OpenMP

2010-10-09 Thread ALAN GAULD
Forwarding to the liist. Please use Reply All on responses. Alan Gauld Author of the Learn To Program website http://www.alan-g.me.uk/ - Original Message > From: Ahmed AL-Masri > To: Alan Gauld > Sent: Saturday, 9 October, 2010 19:50:58 > Subject: Re: [Tutor] OpenMP

Re: [Tutor] OpenMP

2010-10-09 Thread Alan Gauld
"Ahmed AL-Masri" wrote say I have two loops and I want to test in which processer go through... my question is how to do that and is it possible in python No, its not possible to do that explicitly and it shouldn't be. The OS (and interpreter if applicable) is best placed to decide how the CP

Re: [Tutor] OpenMP

2010-10-09 Thread Emile van Sebille
On 10/9/2010 9:55 AM Ahmed AL-Masri said... 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. 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 wh

Re: [Tutor] OpenMP

2010-10-09 Thread Evert Rol
> 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

[Tutor] OpenMP

2010-10-09 Thread Ahmed AL-Masri
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. 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