# encoding: utf-8
# module dipy.utils.omp
# from C:\Users\xukai\Downloads\发票2\venv\Lib\site-packages\dipy\utils\omp.cp311-win_amd64.pyd
# by generator 1.147
# no doc

# imports
import builtins as __builtins__ # <module 'builtins' (built-in)>
import os as os # C:\Programs\Python\Python311\Lib\os.py

# Variables with simple values

default_threads = 16

have_openmp = 1

# functions

def cpu_count(*args, **kwargs): # real signature unknown
    """ Return number of cpus as determined by omp_get_num_procs. """
    pass

def determine_num_threads(*args, **kwargs): # real signature unknown
    """
    Determine the effective number of threads to be used for OpenMP calls
    
        - For ``num_threads = None``,
          - if the ``OMP_NUM_THREADS`` environment variable is set, return that
          value
          - otherwise, return the maximum number of cores retrieved by
          ``openmp.opm_get_num_procs()``.
    
        - For ``num_threads > 0``, return this value.
    
        - For ``num_threads < 0``, return the maximal number of threads minus
          ``|num_threads + 1|``. In particular ``num_threads = -1`` will use as
          many threads as there are available cores on the machine.
    
        - For ``num_threads = 0`` a ValueError is raised.
    
        Parameters
        ----------
        num_threads : int or None
            Desired number of threads to be used.
    """
    pass

def thread_count(*args, **kwargs): # real signature unknown
    """ Return number of threads as determined by omp_get_max_threads. """
    pass

def _get_default_threads(*args, **kwargs): # real signature unknown
    """
    Default number of threads for OpenMP.
    
        This function prioritizes the OMP_NUM_THREADS environment variable.
    """
    pass

def _restore_omp_threads(*args, **kwargs): # real signature unknown
    """ Function for testing restore_default_num_threads. """
    pass

def _set_omp_threads(*args, **kwargs): # real signature unknown
    """ Function for testing set_num_threads. """
    pass

# no classes
# variables with complex values

__all__ = [
    'have_openmp',
    'default_threads',
    'cpu_count',
    'thread_count',
]

__loader__ = None # (!) real value is '<_frozen_importlib_external.ExtensionFileLoader object at 0x0000023F267DF190>'

__pyx_capi__ = {
    'restore_default_num_threads': None, # (!) real value is '<capsule object "void (void)" at 0x0000023F456BD170>'
    'set_num_threads': None, # (!) real value is '<capsule object "void (PyObject *)" at 0x0000023F456BD110>'
}

__spec__ = None # (!) real value is "ModuleSpec(name='dipy.utils.omp', loader=<_frozen_importlib_external.ExtensionFileLoader object at 0x0000023F267DF190>, origin='C:\\\\Users\\\\xukai\\\\Downloads\\\\??2\\\\venv\\\\Lib\\\\site-packages\\\\dipy\\\\utils\\\\omp.cp311-win_amd64.pyd')"

__test__ = {}

