Skip to content

Commit

Permalink
Added cython usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmax committed Jun 21, 2016
1 parent d01f397 commit 0358804
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,25 @@ OpenMP support, like this::
Usage
-----

Importing from python code:

.. code:: python
import omp_thread_count
n_threads = omp_thread_count.get_thread_count()
Importing from cython code:

.. code:: python
from omp_thread_count._omp cimport get_thread_count
Use ``omp_thread_count.get_includes()`` in your extensions' ``include_dirs`` to
use the header files.


Credits
---------

Expand Down

0 comments on commit 0358804

Please sign in to comment.