blob: 797936fe71a11b7ebf59e166db1cea7d9d4cd74f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
# tag: openmp
# You can ignore the previous line.
# It's for internal testing of the Cython documentation.
from cython.parallel cimport parallel
cimport openmp
cdef int num_threads
openmp.omp_set_dynamic(1)
with nogil, parallel():
num_threads = openmp.omp_get_num_threads()
# ...
|