Re: [Cython] [Re] OpenMP thread private variable not recognized (bug report + discussion)

2014-08-12 Thread Dave Hirschfeld
Sturla Molden writes: > > "Leon Bottou" wrote: > > > I am making heavy uses of OpenBlas which also uses OpenMP. > > Using the same queue manager prevents lots of CPU provisioning problem. > > Using multiple queue managers in the same code does not work as well because > > they are not aware o

Re: [Cython] [Re] OpenMP thread private variable not recognized (bug report + discussion)

2014-08-12 Thread Sturla Molden
"Leon Bottou" wrote: > I am making heavy uses of OpenBlas which also uses OpenMP. > Using the same queue manager prevents lots of CPU provisioning problem. > Using multiple queue managers in the same code does not work as well because > they are not aware of what the other one is doing. Normally

[Cython] Cython 0.21 beta 1 released

2014-08-12 Thread Stefan Behnel
Hi all, given the overwhelming lack of negative feedback on the latest alpha release, and the recent changes that made it into the master branch, I think it's time for a first beta release. http://www.cython.org/release/Cython-0.21b1.tar.gz http://www.cython.org/release/Cython-0.21b1.tar.gz.asc

Re: [Cython] aritmetic with arrays in Cython

2014-08-12 Thread Matěj Laitl
On Tuesday 12 of August 2014 15:18:12 Sturla Molden wrote: > Another thing to observe is that Eigen depends on the C++ compiler to elide > temporary arrays. Either I don't understand you, or you don't understand Eigen. Eigen overloads operator=() to circumvent need for temporary arrays. It is *no

Re: [Cython] aritmetic with arrays in Cython

2014-08-12 Thread Matěj Laitl
On Tuesday 12 of August 2014 15:18:12 Sturla Molden wrote: > But using Eigen will taint the output with Eigen's license, since the Eigen > library is statically linked. There is no such thing as "Eigen library". Eigen is fully implemented in header files. Cython would just generate C++ code that

[Cython] [Re] OpenMP thread private variable not recognized (bug report + discussion)

2014-08-12 Thread Leon Bottou
On Tue, 12 Aug 2014 14:26:31, Sturla Molden wrote: > Cython does not do an error here:[... > - i is recognized as private > - r is recognized as reduction > - w is (correctly) recognized as shared Not according to the documentation. http://docs.cython.org/src/userguide/parallelism.html documentati

Re: [Cython] aritmetic with arrays in Cython

2014-08-12 Thread Stefan Behnel
Sturla Molden schrieb am 12.08.2014 um 17:18: > But using Eigen will taint the output with Eigen's license Which is ok for many users, definitely those who only run their own code locally. And the others can eventually use a different backend. > OTOH, Cilkplus is just a compiler extension for C

Re: [Cython] OpenMP thread private variable not recognized (bug report + discussion)

2014-08-12 Thread Brett Calcott
That would be awesome (I love ipython notebook). On Tue, Aug 12, 2014 at 11:20 AM, Sturla Molden wrote: > Brett Calcott > wrote: > > > For someone who has bumbled around trying to use prange & openmp on > the mac > > (but successfully used python threading), this sounds great. Is there an > >

Re: [Cython] OpenMP thread private variable not recognized (bug report + discussion)

2014-08-12 Thread Sturla Molden
Brett Calcott wrote: > For someone who has bumbled around trying to use prange & openmp on the > mac > (but successfully used python threading), this sounds great. Is there an > example of this somewhere that you can point us to? No, but I could make one :) ipython notebook? Sturla

Re: [Cython] aritmetic with arrays in Cython

2014-08-12 Thread Sturla Molden
But using Eigen will taint the output with Eigen's license, since the Eigen library is statically linked. OTOH, Cilkplus is just a compiler extension for C and C++. AFAIK, it is currently available for Intel C++ and Clang (also by Intel) and GCC 4.9. On MSVC I believe it requires Intel Parallel S

Re: [Cython] OpenMP thread private variable not recognized (bug report + discussion)

2014-08-12 Thread Brett Calcott
On Tue, Aug 12, 2014 at 10:26 AM, Sturla Molden wrote: > The sooner you discover you do not > need Cython's prange, the less pain it will cause. > > For someone who has bumbled around trying to use prange & openmp on the mac (but successfully used python threading), this sounds great. Is there an

Re: [Cython] OpenMP thread private variable not recognized (bug report + discussion)

2014-08-12 Thread Sturla Molden
Cython does not do an error here: - i is recognized as private - r is recognized as reduction - w is (correctly) recognized as shared If you need thread local storage, use threading.local() I agree that scoped cdefs would be an advantage. Personally I prefer to avoid OpenMP and just use Python