numo-openblas 0.4.5 → 0.4.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e17d60288877e3a4d872749c2a3272c729d8055be55762bda44247d0cbbc1f48
4
- data.tar.gz: 34b4fe4753e2d1d603b8ebaa7f4e92c440b814f61a3f5ac6de7d506b1002a6d2
3
+ metadata.gz: 4df101ffddf6a60f7648178e1353a1347754a9c51f28e4fcd8f9105fab4bda3f
4
+ data.tar.gz: 9f0c99c8a80c09562b290b8f1c8080f526e96cce5a88ac21843d930e68268b2a
5
5
  SHA512:
6
- metadata.gz: 570e223c3cb6687aa379e89906d7d1c506891bb21a8a129a1dcfdd4c396a12a24fd6cc61ffd06eb8c94a2e82ef844029e4d0dc747d3436fc46adac3d97597c1a
7
- data.tar.gz: e3f95b0846f15291970c25c033bd4a3e9abc254554893b4b8877e9073cca8e317153e474f81852b9da2bd1c2e01c5cbbd2e8f5f86fb247603ae762b7981e5640
6
+ metadata.gz: 5e9512cb71888c6d2860994078c76ba294f93ba71bb20d0b9fdfe80523c2ef79c041268b56ed937a3cc7ba4929361fed428bb3331141efb25abdb766ff71980a
7
+ data.tar.gz: ab463f6ded8bd148f9a0cc71d3ed8af6df617e601ebbc81831bce684a298deb7612a84fe462c1d3fec287402da0ebf0841fda1f01188d22e34aa42da03b90b37
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.4.6
2
+ - Change the version of OpenBLAS to be downloaded to 0.3.20.
3
+ - Introduce conventional commits.
4
+
1
5
  ## 0.4.5
2
6
  - Change the version of OpenBLAS to be downloaded to 0.3.19.
3
7
 
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2020-2021 Atsushi Tatsuma
1
+ Copyright (c) 2020-2022 Atsushi Tatsuma
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without
data/README.md CHANGED
@@ -33,8 +33,30 @@ Or install it yourself as:
33
33
 
34
34
  $ gem install numo-openblas
35
35
 
36
- Note: Numo::OpenBLAS downloads and builds OpenBLAS during installation.
37
- In many cases, building OpenBLAS takes a lot of time.
36
+ Note:
37
+ Numo::OpenBLAS downloads and builds OpenBLAS during installation. In many cases, building OpenBLAS takes a lot of time.
38
+ In addtion, the building OpenBLAS may fail on Apple M1 mac due to linker error:
39
+
40
+ ```sh
41
+ ld: warning: object file (...) was built for newer macOS version (...) than being linked (...)
42
+ ...
43
+ Undefined symbols for architecture arm64:
44
+ "___chkstk_darwin", referenced from:
45
+ _sgemv_ in libopenblas_vortexp-r0.3.19.a(sgemv.o)
46
+ _sger_ in libopenblas_vortexp-r0.3.19.a(sger.o)
47
+ _cblas_sgemv in libopenblas_vortexp-r0.3.19.a(cblas_sgemv.o)
48
+ _cblas_sger in libopenblas_vortexp-r0.3.19.a(cblas_sger.o)
49
+ _dgemv_ in libopenblas_vortexp-r0.3.19.a(dgemv.o)
50
+ _dger_ in libopenblas_vortexp-r0.3.19.a(dger.o)
51
+ _cblas_dgemv in libopenblas_vortexp-r0.3.19.a(cblas_dgemv.o)
52
+ ...
53
+ ld: symbol(s) not found for architecture arm64
54
+ ```
55
+
56
+ In that case, you can install it by giving `MACOSX_DEPLOYMENT_TARGET` your mac version.
57
+ If you are using macOS Monterey, the installation command would be:
58
+
59
+ $ MACOSX_DEPLOYMENT_TARGET=12.0 gem install numo-openblas
38
60
 
39
61
  ## Usage
40
62
 
@@ -62,12 +84,10 @@ Moreover, some of the build options are defined by constants.
62
84
 
63
85
  ## Contributing
64
86
 
65
- Bug reports and pull requests are welcome on GitHub at https://github.com/yoshoku/numo-openblas. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/yoshoku/numo-openblas/blob/main/CODE_OF_CONDUCT.md).
87
+ Bug reports and pull requests are welcome on GitHub at https://github.com/yoshoku/numo-openblas.
88
+ This project is intended to be a safe, welcoming space for collaboration,
89
+ and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
66
90
 
67
91
  ## License
68
92
 
69
93
  The gem is available as open source under the terms of the [BSD-3-Clause License](https://opensource.org/licenses/BSD-3-Clause).
70
-
71
- ## Code of Conduct
72
-
73
- Everyone interacting in the Numo::Openblas project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/yoshoku/numo-openblas/blob/main/CODE_OF_CONDUCT.md).
@@ -8,8 +8,8 @@ require 'open-uri'
8
8
  require 'open3'
9
9
  require 'rubygems/package'
10
10
 
11
- OPENBLAS_VER = '0.3.19'
12
- OPENBLAS_KEY = '0b0b2d1b56ea338ae07d11ab2780c108c188bebf'
11
+ OPENBLAS_VER = '0.3.20'
12
+ OPENBLAS_KEY = '45ec54b75f53f5b704250e60bd8e82a49b430619'
13
13
  OPENBLAS_URI = "https://github.com/xianyi/OpenBLAS/archive/v#{OPENBLAS_VER}.tar.gz"
14
14
  OPENBLAS_DIR = File.expand_path(__dir__ + '/../../../vendor')
15
15
 
@@ -5,6 +5,6 @@ module Numo
5
5
  # Numo::OpenBLAS loads Numo::NArray and Linalg with OpenBLAS used as backend library.
6
6
  module OpenBLAS
7
7
  # The version of Numo::OpenBLAS you install.
8
- VERSION = '0.4.5'
8
+ VERSION = '0.4.6'
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: numo-openblas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - yoshoku
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-12-26 00:00:00.000000000 Z
11
+ date: 2022-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: numo-linalg
@@ -34,21 +34,13 @@ extensions:
34
34
  - ext/numo/openblas/extconf.rb
35
35
  extra_rdoc_files: []
36
36
  files:
37
- - ".github/workflows/build.yml"
38
- - ".gitignore"
39
- - ".rspec"
40
37
  - CHANGELOG.md
41
- - CODE_OF_CONDUCT.md
42
- - Gemfile
43
38
  - LICENSE.txt
44
39
  - README.md
45
- - Rakefile
46
- - Steepfile
47
40
  - ext/numo/openblas/extconf.rb
48
41
  - ext/numo/openblas/openblas.c
49
42
  - lib/numo/openblas.rb
50
43
  - lib/numo/openblas/version.rb
51
- - numo-openblas.gemspec
52
44
  - sig/numo/openblas.rbs
53
45
  - vendor/tmp/.gitkeep
54
46
  homepage: https://github.com/yoshoku/numo-openblas
@@ -74,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
66
  - !ruby/object:Gem::Version
75
67
  version: '0'
76
68
  requirements: []
77
- rubygems_version: 3.3.3
69
+ rubygems_version: 3.3.7
78
70
  signing_key:
79
71
  specification_version: 4
80
72
  summary: Numo::OpenBLAS downloads and builds OpenBLAS during installation and uses
@@ -1,22 +0,0 @@
1
- name: build
2
-
3
- on: [push, pull_request]
4
-
5
- jobs:
6
- build:
7
- runs-on: ubuntu-latest
8
- strategy:
9
- fail-fast: false
10
- matrix:
11
- ruby: [ '2.6', '2.7', '3.0' ]
12
- steps:
13
- - uses: actions/checkout@v2
14
- - name: Install gcc and gfortran
15
- run: sudo apt-get install -y gcc gfortran
16
- - name: Set up Ruby ${{ matrix.ruby }}
17
- uses: ruby/setup-ruby@v1
18
- with:
19
- ruby-version: ${{ matrix.ruby }}
20
- bundler-cache: true
21
- - name: Build and test with Rake
22
- run: bundle exec rake
data/.gitignore DELETED
@@ -1,18 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
10
- /vendor/
11
-
12
- # rspec failure tracking
13
- .rspec_status
14
-
15
- *.swp
16
- *.bundle
17
- .DS_Store
18
- .ruby-version
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
data/CODE_OF_CONDUCT.md DELETED
@@ -1,74 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as
6
- contributors and maintainers pledge to making participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age, body
8
- size, disability, ethnicity, gender identity and expression, level of experience,
9
- nationality, personal appearance, race, religion, or sexual identity and
10
- orientation.
11
-
12
- ## Our Standards
13
-
14
- Examples of behavior that contributes to creating a positive environment
15
- include:
16
-
17
- * Using welcoming and inclusive language
18
- * Being respectful of differing viewpoints and experiences
19
- * Gracefully accepting constructive criticism
20
- * Focusing on what is best for the community
21
- * Showing empathy towards other community members
22
-
23
- Examples of unacceptable behavior by participants include:
24
-
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
27
- * Trolling, insulting/derogatory comments, and personal or political attacks
28
- * Public or private harassment
29
- * Publishing others' private information, such as a physical or electronic
30
- address, without explicit permission
31
- * Other conduct which could reasonably be considered inappropriate in a
32
- professional setting
33
-
34
- ## Our Responsibilities
35
-
36
- Project maintainers are responsible for clarifying the standards of acceptable
37
- behavior and are expected to take appropriate and fair corrective action in
38
- response to any instances of unacceptable behavior.
39
-
40
- Project maintainers have the right and responsibility to remove, edit, or
41
- reject comments, commits, code, wiki edits, issues, and other contributions
42
- that are not aligned to this Code of Conduct, or to ban temporarily or
43
- permanently any contributor for other behaviors that they deem inappropriate,
44
- threatening, offensive, or harmful.
45
-
46
- ## Scope
47
-
48
- This Code of Conduct applies both within project spaces and in public spaces
49
- when an individual is representing the project or its community. Examples of
50
- representing a project or community include using an official project e-mail
51
- address, posting via an official social media account, or acting as an appointed
52
- representative at an online or offline event. Representation of a project may be
53
- further defined and clarified by project maintainers.
54
-
55
- ## Enforcement
56
-
57
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
- reported by contacting the project team at yoshoku@outlook.com. All
59
- complaints will be reviewed and investigated and will result in a response that
60
- is deemed necessary and appropriate to the circumstances. The project team is
61
- obligated to maintain confidentiality with regard to the reporter of an incident.
62
- Further details of specific enforcement policies may be posted separately.
63
-
64
- Project maintainers who do not follow or enforce the Code of Conduct in good
65
- faith may face temporary or permanent repercussions as determined by other
66
- members of the project's leadership.
67
-
68
- ## Attribution
69
-
70
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
- available at [https://contributor-covenant.org/version/1/4][version]
72
-
73
- [homepage]: https://contributor-covenant.org
74
- [version]: https://contributor-covenant.org/version/1/4/
data/Gemfile DELETED
@@ -1,10 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in numo-openblas.gemspec
4
- gemspec
5
-
6
- gem 'rake', '~> 13.0'
7
- gem 'rake-compiler', '~> 1.0'
8
- gem 'rspec', '~> 3.0'
9
- gem 'rbs', '~> 1.2'
10
- gem 'steep', '~> 0.44'
data/Rakefile DELETED
@@ -1,15 +0,0 @@
1
- require 'bundler/gem_tasks'
2
- require 'rspec/core/rake_task'
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
-
6
- require 'rake/extensiontask'
7
-
8
- task build: :compile
9
-
10
- Rake::ExtensionTask.new('openblas') do |ext|
11
- ext.ext_dir = 'ext/numo/openblas'
12
- ext.lib_dir = 'lib/numo/openblas'
13
- end
14
-
15
- task default: %i[clobber compile spec]
data/Steepfile DELETED
@@ -1,20 +0,0 @@
1
- target :lib do
2
- signature "sig", "sig-deps"
3
-
4
- check "lib" # Directory name
5
- # check "Gemfile" # File name
6
- # check "app/models/**/*.rb" # Glob
7
- # # ignore "lib/templates/*.rb"
8
- #
9
- # # library "pathname", "set" # Standard libraries
10
- # library "numo-narray", "numo-linalg" # Gems
11
- end
12
-
13
- # target :spec do
14
- # signature "sig", "sig-private"
15
- #
16
- # check "spec"
17
- #
18
- # # library "pathname", "set" # Standard libraries
19
- # # library "rspec"
20
- # end
@@ -1,36 +0,0 @@
1
- require_relative 'lib/numo/openblas/version'
2
-
3
- Gem::Specification.new do |spec|
4
- spec.name = 'numo-openblas'
5
- spec.version = Numo::OpenBLAS::VERSION
6
- spec.authors = ['yoshoku']
7
- spec.email = ['yoshoku@outlook.com']
8
-
9
- spec.summary = <<~MSG
10
- Numo::OpenBLAS downloads and builds OpenBLAS during installation and
11
- uses that as a background library for Numo::Linalg.
12
- MSG
13
- spec.description = <<~MSG
14
- Numo::OpenBLAS downloads and builds OpenBLAS during installation and
15
- uses that as a background library for Numo::Linalg.
16
- MSG
17
- spec.homepage = 'https://github.com/yoshoku/numo-openblas'
18
- spec.license = 'BSD-3-Clause'
19
-
20
- spec.metadata['homepage_uri'] = spec.homepage
21
- spec.metadata['source_code_uri'] = 'https://github.com/yoshoku/numo-openblas'
22
- spec.metadata['changelog_uri'] = 'https://github.com/yoshoku/numo-openblas/blob/main/CHANGELOG.md'
23
- spec.metadata['documentation_uri'] = 'https://github.com/yoshoku/numo-openblas/blob/main/README.md'
24
-
25
- # Specify which files should be added to the gem when it is released.
26
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
27
- spec.files = Dir.chdir(File.expand_path(__dir__)) do
28
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|sig-deps)/}) }
29
- end
30
- spec.bindir = 'exe'
31
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
32
- spec.require_paths = ['lib']
33
- spec.extensions = ['ext/numo/openblas/extconf.rb']
34
-
35
- spec.add_runtime_dependency 'numo-linalg', '>= 0.1.4'
36
- end