{"id":51138042,"url":"https://github.com/itamarst/openblas-tod","last_synced_at":"2026-06-25T20:01:20.836Z","repository":{"id":364136573,"uuid":"1266489476","full_name":"itamarst/openblas-tod","owner":"itamarst","description":"Experiment in threads-on-demand for OpenBLAS, to be moved elsewhere on success","archived":false,"fork":false,"pushed_at":"2026-06-11T20:05:44.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-11T20:20:28.170Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/itamarst.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-11T17:02:08.000Z","updated_at":"2026-06-11T20:06:05.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/itamarst/openblas-tod","commit_stats":null,"previous_names":["itamarst/openblas-tod"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/itamarst/openblas-tod","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itamarst%2Fopenblas-tod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itamarst%2Fopenblas-tod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itamarst%2Fopenblas-tod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itamarst%2Fopenblas-tod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itamarst","download_url":"https://codeload.github.com/itamarst/openblas-tod/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itamarst%2Fopenblas-tod/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34790215,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-25T02:00:05.521Z","response_time":101,"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":"2026-06-25T20:01:19.605Z","updated_at":"2026-06-25T20:01:20.636Z","avatar_url":"https://github.com/itamarst.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenBLAS-TOD: Replace the global OpenBLAS thread pool with threads on demand\n\nThe goal:\n\n* When using OpenBLAS pthreads (e.g. `pip install numpy`), setting the number of threads in OpenBLAS sets it globally for a process-wide thread pool.\n* When using OpenBLAS with OpenMP, setting the the number of threads is _thread-local_.\n\nImagine you set the number of OpenBLAS threads to 4, and you start a Python thread pool with 5 threads; each one starts an OpenBLAS computation.\nDepending on which version of OpenBLAS you get, you might 4 threads running OpenBLAS code (mixing work from 5 Python thread), or a total of 4×5 == 20 threads running OpenBLAS code.\n\nThis inconsistency is a problem!\n\nThis project (currently a proof of concept) installs new logic into OpenBLAS on pthreads, so that it starts a thread pool for each parallel operation, more like OpenMP.\n(Unlike OpenMP there is still only one single process-wide setting for number of OpenBLAS threads.)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitamarst%2Fopenblas-tod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitamarst%2Fopenblas-tod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitamarst%2Fopenblas-tod/lists"}