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 +4 -4
- data/.github/workflows/build.yml +23 -0
- data/CHANGELOG.md +3 -0
- data/README.md +11 -1
- data/lib/numo/openblas.rb +1 -24
- data/lib/numo/openblas/version.rb +1 -1
- metadata +6 -6
- data/.travis.yml +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a31c289de2f166a3ef7b5f85c26a7b4b950930017aea3e1ac30c7f58dd33a1f5
|
4
|
+
data.tar.gz: 4cff2b301fb14c20699b3a66066a730694694798b2efb92538d80edc4456f1f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Numo::OpenBLAS
|
2
2
|
|
3
|
-
[![Build Status](https://
|
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
|
data/lib/numo/openblas.rb
CHANGED
@@ -5,27 +5,4 @@ require 'numo/linalg/linalg'
|
|
5
5
|
require 'numo/openblas/version'
|
6
6
|
require 'numo/openblas/openblas'
|
7
7
|
|
8
|
-
|
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/"))
|
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
|
+
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-
|
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.
|
data/.travis.yml
DELETED
@@ -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
|