numo-openblas 0.4.4 → 0.4.7

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: 75094ee0125abe4f4cdd6eb93e8d5ff8d67a7789f842352db2f83bc4def17e22
4
- data.tar.gz: c9bc793e378f5ad5a5f6fe78b967e354d4b824e5768c98fb8444ca508ac197af
3
+ metadata.gz: d5230ed1874d84d922b562f3e927650b9c6efffc23ba0ef7e8898c5eac9625df
4
+ data.tar.gz: 3cb5875403295f8ae934ce8aadf88b15da32bcd57851b117ffb69cdc6545b527
5
5
  SHA512:
6
- metadata.gz: 5ffb634e056dd3e8877adb543aeaa704323cdb968224c533d2b30b7696f74b417dab0c0218a320acfe7a3224ce9773468f30e8224ae094881171666362c72453
7
- data.tar.gz: b27bf6ebb86ffcc213276d89a7d98751f489da470299ed2617ff5ad05ee96f1209483caa632f02e99560d85736ebbab285c064bb70b45999ebd08cd94a50de95
6
+ metadata.gz: bf37d995d9ce21b2ad56764a0f7553c04373ad1f47ca85996bc26e23fc0d5d3e40efe4c186f28b8b985bea24981a200d3aab91235f73b53a599649eeb6339831
7
+ data.tar.gz: 7f63afa01206ff7d1ebd8e80a83e8d89444a007cb966bc9278f6b9052c6d4d37b8953b8d0f26e99ec30b02f97e3cab6239144001c562955dd4662f36d1e8c5fd
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## 0.4.7
2
+ - Refactor codes and configs with RuboCop.
3
+
4
+ ## 0.4.6
5
+ - Change the version of OpenBLAS to be downloaded to 0.3.20.
6
+ - Introduce conventional commits.
7
+
8
+ ## 0.4.5
9
+ - Change the version of OpenBLAS to be downloaded to 0.3.19.
10
+
1
11
  ## 0.4.4
2
12
  - Change the version of OpenBLAS to be downloaded to 0.3.18.
3
13
 
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.18'
12
- OPENBLAS_KEY = 'a9d5ce86908657f002c6566cd8f35fe882709be4'
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.4'
8
+ VERSION = '0.4.7'
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.4
4
+ version: 0.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - yoshoku
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-11-27 00:00:00.000000000 Z
11
+ date: 2022-07-24 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
@@ -59,6 +51,7 @@ metadata:
59
51
  source_code_uri: https://github.com/yoshoku/numo-openblas
60
52
  changelog_uri: https://github.com/yoshoku/numo-openblas/blob/main/CHANGELOG.md
61
53
  documentation_uri: https://github.com/yoshoku/numo-openblas/blob/main/README.md
54
+ rubygems_mfa_required: 'true'
62
55
  post_install_message:
63
56
  rdoc_options: []
64
57
  require_paths:
@@ -74,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
67
  - !ruby/object:Gem::Version
75
68
  version: '0'
76
69
  requirements: []
77
- rubygems_version: 3.2.32
70
+ rubygems_version: 3.2.33
78
71
  signing_key:
79
72
  specification_version: 4
80
73
  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