Re: [Numpy-discussion] f2py and openmp on mac os x with gfortran

2011-07-21 Thread Paul Anton Letnes
Hi, I had the same problem. I think this might work: FFLAGS='-fopenmp' f2py -c (etc) The thing is that f2py doesn't let you pass the -fopenmp flag at the right time to the compiler, so you have to use some sort of environment variable trick. By the way, as far as I know, this is the case also

Re: [Numpy-discussion] f2py and openmp on mac os x with gfortran

2011-07-21 Thread Juan
Hi Brandt, I am on linux and see the same problem. It is solved (at least here) if you add at the end the library libgomp, i.e: f2py -c -m play play.f90 --fcompiler=gfortran --f90flags=-fopenmp -lgomp Hope it helps, Juan Hello, I'm struggling to create openmp subroutines. I've simplified

Re: [Numpy-discussion] X11 system info

2011-07-21 Thread Darren Dale
On Wed, Jul 20, 2011 at 4:58 AM, Pauli Virtanen p...@iki.fi wrote: Tue, 19 Jul 2011 21:55:28 +0200, Ralf Gommers wrote: On Sun, Jul 17, 2011 at 11:48 PM, Darren Dale dsdal...@gmail.com wrote: In numpy.distutils.system info:    default_x11_lib_dirs = libpaths(['/usr/X11R6/lib','/usr/X11/lib',

[Numpy-discussion] Rationale for returning type-wrapped min() / max() scalars? (was: Problem with ufunc of a numpy.ndarray derived class)

2011-07-21 Thread Hans Meine
Hi, I have the same problem as Martin DRUON, who wrote 10 days ago: I have a problem with the ufunc return type of a numpy.ndarray derived class. In fact, I subclass a numpy.ndarray using the tutorial : http://docs.scipy.org/doc/numpy/user/basics.subclassing.html But, for example, if I

Re: [Numpy-discussion] f2py and openmp on mac os x with gfortran

2011-07-21 Thread Brandt Belson
Hi all, As Juan said, I didn't include the -lgomp flag for f2py. Once I use that, the f2py module works with openMP as expected. Thanks, Brandt Message: 1 Date: Thu, 21 Jul 2011 11:34:13 +0200 From: Juan fi...@yahoo.com Subject: Re: [Numpy-discussion] f2py and openmp on mac os x with

[Numpy-discussion] ANN: NumPy 1.6.1 release

2011-07-21 Thread Ralf Gommers
Hi, I am pleased to announce the availability of NumPy 1.6.1. This is a bugfix release for the 1.6.x series; the list of fixed bugs is given below. Sources and binaries can be found at http://sourceforge.net/projects/numpy/files/NumPy/1.6.1/ Thanks to anyone who contributed to this release.

Re: [Numpy-discussion] Array vectorization in numpy

2011-07-21 Thread srean
This is a slight digression: is there a way to have a out parameter like semantics with numexpr. I have always used it as a[:] = numexpr(expression) In order to make sure the 1.6 nditer supports multithreading, I adapted numexpr to use it. The branch which does this is here: