Commit Graph

13 Commits

Author SHA1 Message Date
Francesc Alted 6e59ed5f0e Reformatted code through PyCharm. 2014-04-18 10:53:51 +02:00
Antonio Valentino ccf15d693a Fix py3k incompatibilities in python code 2012-04-21 22:13:05 +02:00
Antonio Valentino b83e68bdb3 Switch from PyString to PyBytes API 2012-04-15 13:18:11 +02:00
Francesc Alted f776d7a770 Added licence boilerplates with proper copyright information. Solves #62. 2011-11-27 12:05:29 +01:00
Francesc Alted 81d4b5bec1 The number of VML threads is initially set to 1.
When compiled with VML support, the number of threads is set to 1
for VML core, and to the number of cores for the native pthreads
implementation.  This leads to better performance.  Closes #39.

The ``set_num_threads`` now returns the number of previous thread
setting, as stated in the docstrings.
2010-11-28 09:48:45 +00:00
Francesc Alted 99c0ede4c1 The temporaries are created dinamically now.
This are special registers in VM because they need to be unique for each
thread.  Creating them in initialization time is a big loss of space,
because the NumExpr instances are cached for speed.

We are loosing a bit of performance with this, but I think the memory
savings pay for this.
2010-07-31 14:43:29 +00:00
Francesc Alted 488c7a9205 Fixed the bug exposed in bug.py.
The problem was that the internal buffers in expressions need to be refreshed when the
number of threads changes.  I delete now the cache for expression each time the number of
threads is changed.

The bug.py has been migrated to a test case in the test suite.
2010-07-30 22:24:33 +00:00
Francesc Alted 00d0a4428d Added more info about preferred parallelizer in Numexpr. 2010-07-30 16:11:29 +00:00
Francesc Alted 33c297ddf2 Merged branch multithreaded into trunk. 2010-07-30 14:51:38 +00:00
Francesc Alted 047d5a845d Remove a percentage of entries in CacheDict instead of a fixed number. 2009-02-11 09:45:00 +00:00
Francesc Alted 0282375bd8 Added suport for querying the version of the VML/MKL library.
Added `print_versions()` function for easily query the versions of software
that numexpr relies on.

Documentation updated accordingly.  Announcement updated as well and
almost ready for release 1.2.
2009-02-10 13:50:34 +00:00
Francesc Alted 5248960b0a Added a new CacheDict class for caching variable names and compiled
expressions.
2009-02-10 12:04:07 +00:00
Francesc Alted de26c112c9 Merged in the vml_support branch. Closes issue #9. 2009-02-09 18:42:22 +00:00