{"id":16330076,"url":"https://github.com/rmax/omp-thread-count","last_synced_at":"2026-03-11T03:32:32.020Z","repository":{"id":46353111,"uuid":"61460368","full_name":"rmax/omp-thread-count","owner":"rmax","description":"A small Python module to get the actual number of threads used by OMP via Cython bindings.","archived":false,"fork":false,"pushed_at":"2023-07-20T13:16:19.000Z","size":66,"stargazers_count":3,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-17T04:24:00.899Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rmax.png","metadata":{"files":{"readme":"README.rst","changelog":"HISTORY.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-19T01:59:17.000Z","updated_at":"2025-06-18T12:31:28.000Z","dependencies_parsed_at":"2023-02-09T03:45:20.395Z","dependency_job_id":null,"html_url":"https://github.com/rmax/omp-thread-count","commit_stats":null,"previous_names":["rolando/omp-thread-count"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/rmax/omp-thread-count","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmax%2Fomp-thread-count","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmax%2Fomp-thread-count/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmax%2Fomp-thread-count/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmax%2Fomp-thread-count/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rmax","download_url":"https://codeload.github.com/rmax/omp-thread-count/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmax%2Fomp-thread-count/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30369379,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"online","status_checked_at":"2026-03-11T02:00:07.027Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T23:18:25.569Z","updated_at":"2026-03-11T03:32:31.990Z","avatar_url":"https://github.com/rmax.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=====================\nOpenMP Thread Counter\n=====================\n\n.. image:: https://img.shields.io/pypi/v/omp-thread-count.svg\n        :target: https://pypi.python.org/pypi/omp-thread-count\n\n.. image:: https://img.shields.io/travis/rolando/omp-thread-count.svg\n        :target: https://travis-ci.org/rolando/omp-thread-count\n\n.. image:: https://readthedocs.org/projects/omp-thread-count/badge/?version=latest\n        :target: https://readthedocs.org/projects/omp-thread-count/?badge=latest\n        :alt: Documentation Status\n\n\nA small Python module to get the actual number of threads used by OMP via Cython bindings.\n\n* Free software: MIT license\n* Documentation: https://omp-thread-count.readthedocs.org.\n\nWhy\n---\n\nBecause GCC/Cython always returned 1 when calling ``openmp.get_thread_num`` or ``openmp.get_max_threads``.\n\nInstallation\n------------\n\nTo install run::\n\n  pip install omp-thread-count\n\nIn OSX, and possibly other platforms, you may need to specify a compiler with\nOpenMP support, like this::\n\n  CC=gcc-4.8 pip install omp-thread-count\n\nUsage\n-----\n\nImporting from python code:\n\n.. code:: python\n \n  import omp_thread_count\n\n  n_threads = omp_thread_count.get_thread_count()\n\n\nImporting from cython code:\n\n.. code:: python\n\n  from omp_thread_count._omp cimport get_thread_count\n\nUse ``omp_thread_count.get_includes()`` in your extensions' ``include_dirs`` to\nuse the header files.\n\n\nCredits\n---------\n\nThis package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmax%2Fomp-thread-count","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frmax%2Fomp-thread-count","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmax%2Fomp-thread-count/lists"}