numo-openblas 0.2.2 → 0.3.0

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: 41f668bc3d57a69e29fb9eff1a6cdde35400705fccee71e7fedf045d9ca4c71b
4
- data.tar.gz: da92d405b44770415a52a0d5e3e09d9bd8f3275d231bdcae75e497ba16f70fd2
3
+ metadata.gz: a31c289de2f166a3ef7b5f85c26a7b4b950930017aea3e1ac30c7f58dd33a1f5
4
+ data.tar.gz: 4cff2b301fb14c20699b3a66066a730694694798b2efb92538d80edc4456f1f6
5
5
  SHA512:
6
- metadata.gz: 95af8707365521aee01fed83bbbab0ed59e6e65d3207b327b4c1e270d1498bb7d6949332331f13fb1c374f7b7654828f6014780fdd3019bd6fd3fcf5c6c53505
7
- data.tar.gz: 1d8199370ace995295d01fa1e7f915e365570cecd73f152dc471ef02c6fc1cc9d452ed4f375ce7368b77b7fb89f424173968bef4eb30d2e22dc19ff51b400ecb
6
+ metadata.gz: d278ca8478bf9b22b9f8cbc8008d87ebbc17922d4123480082d4015e812873e61ae54233e4cc5376d2cc202c239efbbbc32aef6e7210c2381df23c0f78b7dcfd
7
+ data.tar.gz: 596c45ca92f199b2a9dd22c80610d3ab545db664d7aeb97994204af529d06b3348674d23586db4fc139b5e8af5cbab15aa9305d48b1d049fd6ddaaba50ca0486
@@ -0,0 +1,23 @@
1
+ name: build
2
+
3
+ on: [push]
4
+
5
+ jobs:
6
+ build:
7
+ runs-on: ubuntu-latest
8
+ strategy:
9
+ matrix:
10
+ ruby: [ '2.5', '2.6', '2.7' ]
11
+ steps:
12
+ - uses: actions/checkout@v2
13
+ - name: Install gcc and gfortran
14
+ run: sudo apt-get install -y gcc gfortran
15
+ - name: Set up Ruby ${{ matrix.ruby }}
16
+ uses: actions/setup-ruby@v1
17
+ with:
18
+ ruby-version: ${{ matrix.ruby }}
19
+ - name: Build and test with Rake
20
+ run: |
21
+ gem install bundler
22
+ bundle install --jobs 4 --retry 3
23
+ bundle exec rake
@@ -1,3 +1,6 @@
1
+ ## 0.3.0
2
+ - Simplified code for loading of OpenBLAS library.
3
+
1
4
  ## 0.2.2
2
5
  - Change the version of OpenBLAS to be downloaded to 0.3.12.
3
6
 
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Numo::OpenBLAS
2
2
 
3
- [![Build Status](https://travis-ci.org/yoshoku/numo-openblas.svg?branch=master)](https://travis-ci.org/yoshoku/numo-openblas)
3
+ [![Build Status](https://github.com/yoshoku/numo-openblas/workflows/build/badge.svg)](https://github.com/yoshoku/numo-openblas/actions?query=workflow%3Abuild)
4
4
  [![Gem Version](https://badge.fury.io/rb/numo-openblas.svg)](https://badge.fury.io/rb/numo-openblas)
5
5
  [![BSD 3-Clause License](https://img.shields.io/badge/License-BSD%203--Clause-orange.svg)](https://github.com/yoshoku/suika/blob/master/LICENSE.txt)
6
6
 
@@ -9,6 +9,16 @@ uses that as a background library for [Numo::Linalg](https://github.com/ruby-num
9
9
 
10
10
  ## Installation
11
11
 
12
+ Building LAPACK included with OpenBLAS requires Fortran compiler.
13
+
14
+ macOS:
15
+
16
+ $ brew install gfortran
17
+
18
+ Ubuntu:
19
+
20
+ $ sudo apt-get install gfortran
21
+
12
22
  Add this line to your application's Gemfile:
13
23
 
14
24
  ```ruby
@@ -5,27 +5,4 @@ require 'numo/linalg/linalg'
5
5
  require 'numo/openblas/version'
6
6
  require 'numo/openblas/openblas'
7
7
 
8
- module Numo
9
- module Linalg
10
- module Loader
11
- module_function
12
-
13
- def load_openblas
14
- dlext = case RbConfig::CONFIG['host_os']
15
- when /mswin|msys|mingw|cygwin/
16
- 'dll'
17
- when /darwin|mac os/
18
- 'dylib'
19
- else
20
- 'so'
21
- end
22
- openblas_path = File.expand_path(__dir__ + "/../../vendor/lib/libopenblas.#{dlext}")
23
- Numo::Linalg::Blas.dlopen(openblas_path)
24
- Numo::Linalg::Lapack.dlopen(openblas_path)
25
- @@libs = [openblas_path]
26
- end
27
- end
28
- end
29
- end
30
-
31
- Numo::Linalg::Loader.load_openblas
8
+ Numo::Linalg::Loader.load_openblas(File.expand_path("#{__dir__}/../../vendor/lib/"))
@@ -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.2.2'
8
+ VERSION = '0.3.0'
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.2.2
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - yoshoku
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-10-24 00:00:00.000000000 Z
11
+ date: 2020-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: numo-linalg
@@ -34,9 +34,9 @@ extensions:
34
34
  - ext/numo/openblas/extconf.rb
35
35
  extra_rdoc_files: []
36
36
  files:
37
+ - ".github/workflows/build.yml"
37
38
  - ".gitignore"
38
39
  - ".rspec"
39
- - ".travis.yml"
40
40
  - CHANGELOG.md
41
41
  - CODE_OF_CONDUCT.md
42
42
  - Gemfile
@@ -57,7 +57,7 @@ metadata:
57
57
  source_code_uri: https://github.com/yoshoku/numo-openblas
58
58
  changelog_uri: https://github.com/yoshoku/numo-openblas/blob/master/CHANGELOG.md
59
59
  documentation_uri: https://github.com/yoshoku/numo-openblas/blob/master/README.md
60
- post_install_message:
60
+ post_install_message:
61
61
  rdoc_options: []
62
62
  require_paths:
63
63
  - lib
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  version: '0'
74
74
  requirements: []
75
75
  rubygems_version: 3.1.4
76
- signing_key:
76
+ signing_key:
77
77
  specification_version: 4
78
78
  summary: Numo::OpenBLAS downloads and builds OpenBLAS during installation and uses
79
79
  that as a background library for Numo::Linalg.
@@ -1,19 +0,0 @@
1
- ---
2
- os: linux
3
- dist: bionic
4
- language: ruby
5
- cache: bundler
6
- rvm:
7
- - '2.7'
8
-
9
- addons:
10
- apt:
11
- packages:
12
- - gcc
13
- - gfortran
14
-
15
- before_install:
16
- - gem install bundler -v 2.1.2
17
-
18
- after_failure:
19
- - cat /home/travis/build/yoshoku/numo-openblas/vendor/tmp/openblas.log