{"id":19466217,"url":"https://github.com/yoshoku/numo-openblas","last_synced_at":"2025-04-25T09:32:45.923Z","repository":{"id":48851763,"uuid":"280612817","full_name":"yoshoku/numo-openblas","owner":"yoshoku","description":"Numo::OpenBLAS builds and uses OpenBLAS as a background library for Numo::Linalg","archived":false,"fork":false,"pushed_at":"2025-01-13T07:41:23.000Z","size":127,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-03T19:51:12.594Z","etag":null,"topics":["data-science","machine-learning","numo","openblas","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yoshoku.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2020-07-18T08:14:50.000Z","updated_at":"2025-01-13T07:31:54.000Z","dependencies_parsed_at":"2023-02-01T01:31:09.469Z","dependency_job_id":"b6059f56-feaa-48d9-8a0c-32af97a0a8ce","html_url":"https://github.com/yoshoku/numo-openblas","commit_stats":{"total_commits":88,"total_committers":1,"mean_commits":88.0,"dds":0.0,"last_synced_commit":"df6ed6d7a2ef655e2d761991ba67184dfa44294a"},"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoshoku%2Fnumo-openblas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoshoku%2Fnumo-openblas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoshoku%2Fnumo-openblas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yoshoku%2Fnumo-openblas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yoshoku","download_url":"https://codeload.github.com/yoshoku/numo-openblas/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250790280,"owners_count":21487783,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["data-science","machine-learning","numo","openblas","ruby"],"created_at":"2024-11-10T18:26:08.297Z","updated_at":"2025-04-25T09:32:45.638Z","avatar_url":"https://github.com/yoshoku.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Numo::OpenBLAS\n\n[![Build Status](https://github.com/yoshoku/numo-openblas/workflows/build/badge.svg)](https://github.com/yoshoku/numo-openblas/actions?query=workflow%3Abuild)\n[![Gem Version](https://badge.fury.io/rb/numo-openblas.svg)](https://badge.fury.io/rb/numo-openblas)\n[![BSD 3-Clause License](https://img.shields.io/badge/License-BSD%203--Clause-orange.svg)](https://github.com/yoshoku/numo-openblas/blob/main/LICENSE.txt)\n\nNumo::OpenBLAS downloads and builds [OpenBLAS](https://www.openblas.net/) during installation and\nuses that as a background library for [Numo::Linalg](https://github.com/ruby-numo/numo-linalg).\n\n## Installation\n\nBuilding LAPACK included with OpenBLAS requires Fortran compiler.\n\nmacOS:\n\n    $ brew install gfortran\n\nUbuntu:\n\n    $ sudo apt-get install gfortran\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'numo-openblas'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install numo-openblas\n\nNote:\nNumo::OpenBLAS downloads and builds OpenBLAS during installation. In many cases, building OpenBLAS takes a lot of time.\nIn addtion, the building OpenBLAS may fail on Apple M1 mac due to linker error:\n\n```sh\nld: warning: object file (...) was built for newer macOS version (...) than being linked (...)\n...\nUndefined symbols for architecture arm64:\n  \"___chkstk_darwin\", referenced from:\n  _sgemv_ in libopenblas_vortexp-r0.3.19.a(sgemv.o)\n  _sger_ in libopenblas_vortexp-r0.3.19.a(sger.o)\n  _cblas_sgemv in libopenblas_vortexp-r0.3.19.a(cblas_sgemv.o)\n  _cblas_sger in libopenblas_vortexp-r0.3.19.a(cblas_sger.o)\n  _dgemv_ in libopenblas_vortexp-r0.3.19.a(dgemv.o)\n  _dger_ in libopenblas_vortexp-r0.3.19.a(dger.o)\n  _cblas_dgemv in libopenblas_vortexp-r0.3.19.a(cblas_dgemv.o)\n  ...\nld: symbol(s) not found for architecture arm64\n```\n\nIn that case, you can install it by giving `MACOSX_DEPLOYMENT_TARGET` your mac version.\nIf you are using macOS Monterey, the installation command would be:\n\n    $ MACOSX_DEPLOYMENT_TARGET=12.0 gem install numo-openblas\n\n## Usage\n\nNumo::OpenBLAS loads Numo::NArray and Numo::Linalg using OpenBLAS as a background library.\nYou can use Numo::NArray and Numo::Linalg just by loading Numo::OpenBLAS.\n\n```ruby\nrequire 'numo/openblas'\n\nx = Numo::DFloat.new(5, 2).rand\nc = x.transpose.dot(x)\neig_val, eig_vec = Numo::Linalg.eigh(c)\n```\n\nMoreover, some of the build options are defined by constants.\n\n```ruby\n\u003e Numo::OpenBLAS::OPENBLAS_VERSION\n=\u003e \" OpenBLAS 0.3.10 \"\n\u003e Numo::OpenBLAS::OPENBLAS_CHAR_CORENAME\n=\u003e \"HASWELL\"\n\u003e Numo::OpenBLAS::OPENBLAS_NUM_CORES\n=\u003e 8\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/yoshoku/numo-openblas.\nThis project is intended to be a safe, welcoming space for collaboration,\nand contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [BSD-3-Clause License](https://opensource.org/licenses/BSD-3-Clause).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoshoku%2Fnumo-openblas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyoshoku%2Fnumo-openblas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyoshoku%2Fnumo-openblas/lists"}