pysofft.omp
pysofft.omp
Wrapper for fftw options
Functions:
| Name | Description |
|---|---|
set_num_threads |
Set the maximal number of OpenMP threads. |
get_max_threads |
Get the current maximal number of OpenMP threads. |
set_num_threads(nthreads=None)
[source]
Set the maximal number of OpenMP threads.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
nthreads
|
int
|
Maximal number of threads. By default nthreads is set to half the available cpu threads. |
None
|
get_max_threads()
[source]
Get the current maximal number of OpenMP threads.
Returns:
| Name | Type | Description |
|---|---|---|
nthreads |
int64
|
Current maximal number of threads. |