File: INSTALL.rst

package info (click to toggle)
numexpr 2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 576 kB
  • ctags: 1,150
  • sloc: cpp: 3,442; python: 2,890; ansic: 222; makefile: 41; sh: 32
file content (54 lines) | stat: -rw-r--r-- 1,613 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
==================
Installing Numexpr
==================

These are instructions for installing Numexpr on Unix systems.  For
Windows, it is best to install it from binaries.  However, you should
note that, for the time being, we cannot provide Windows binaries with
MKL support.


Building
========

This version of `Numexpr` requires Python 2.6 or greater,
and NumPy 1.6 or greater.

It's built in the standard Python way::

  $ python setup.py build
  $ python setup.py install

You can test `numexpr` with:

  $ python -c "import numexpr; numexpr.test()"


Enabling Intel's MKL support
============================

numexpr includes support for Intel's MKL library.  This allows for
better performance on Intel architectures, mainly when evaluating
transcendental functions (trigonometrical, exponential...).  It also
enables numexpr using several CPU cores.

If you have Intel's MKL, just copy the `site.cfg.example` that comes
in the distribution to `site.cfg` and edit the latter giving proper
directions on how to find your MKL libraries in your system.  After
doing this, you can proceed with the usual building instructions
listed above.

Pay attention to the messages during the building process in order to
know whether MKL has been detected or not.  Finally, you can check the
speed-ups on your machine by running the `bench/vml_timing.py` script
(you can play with different parameters to the
`set_vml_accuracy_mode()` and `set_vml_num_threads()` functions in the
script so as to see how it would affect performance).



.. Local Variables:
.. mode: text
.. coding: utf-8
.. fill-column: 70
.. End: