thundersvm 0.1.3 → 0.1.4

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: f4ae1f7161d5f82ad789ab06cfb5f22cb28402be656f3c9c3aa2e157b79d585e
4
- data.tar.gz: 387c268daa380a4d20b8a1fccc13cf8a354aff8cdd67faaf15a5f12d4baf3730
3
+ metadata.gz: ae30c2ef1dd4fdb6a1918a3c86e1a54d03a9498d139f47772aea3c6457abc2aa
4
+ data.tar.gz: d4a5fab10736b962ac0802f567294de1d31ec76d955aa5c6bf7e4bce85d30bc0
5
5
  SHA512:
6
- metadata.gz: fa262ec05325a0361f7a33d16bf57a79d5d8144fbcb2d0b8562549141825ae2af0617d20961fa872128259c91a89afefccaf1fdf44ec2993c4d9e33b2d8261b4
7
- data.tar.gz: 7e1208de269cd0e30160f6892b9b0714b4649639c29381a01df7a0d2d6ed85b8b5e307cad0c86923e45e3c5dcc48cb8a5cc3bc38bdb00066cfd4183a7fb27a25
6
+ metadata.gz: c1aed380a2f70a5cd750fd9f510f9d988c85ef83abe076b520633ac41fd0ffdd13a18d7bf998ef9735bb45a5a3875d1e4a9d90880a8a969c68b342ac923aba29
7
+ data.tar.gz: e85d62af61205e557d4404e3e263c59f6c9cd2299436147d91cc2373f3d68820ae722fc6e877b5a59761a794362edf4c92c08bae77b7e70b93964796a977c990
@@ -1,3 +1,7 @@
1
+ ## 0.1.4 (2020-07-26)
2
+
3
+ - Improved error message when OpenMP not found on Mac
4
+
1
5
  ## 0.1.3 (2020-02-11)
2
6
 
3
7
  - Fixed `Could not find ThunderSVM` error on some Linux platforms
data/README.md CHANGED
@@ -16,6 +16,12 @@ Add this line to your application’s Gemfile:
16
16
  gem 'thundersvm'
17
17
  ```
18
18
 
19
+ On Mac, also install OpenMP:
20
+
21
+ ```sh
22
+ brew install libomp
23
+ ```
24
+
19
25
  ## Getting Started
20
26
 
21
27
  Prep your data
@@ -148,6 +154,7 @@ ThunderSVM.ffi_lib = "path/to/build/lib/libthundersvm.dll"
148
154
  ## Resources
149
155
 
150
156
  - [ThunderSVM: A Fast SVM Library on GPUs and CPUs](https://github.com/Xtra-Computing/thundersvm/blob/master/thundersvm-full.pdf)
157
+ - [A Practical Guide to Support Vector Classification](https://www.csie.ntu.edu.tw/~cjlin/papers/guide/guide.pdf)
151
158
 
152
159
  ## History
153
160
 
@@ -7,7 +7,12 @@ module ThunderSVM
7
7
  dlload Fiddle.dlopen(libs.shift)
8
8
  rescue Fiddle::DLError => e
9
9
  retry if libs.any?
10
- raise e
10
+
11
+ if e.message.include?("Library not loaded: /usr/local/opt/libomp/lib/libomp.dylib") && e.message.include?("Reason: image not found")
12
+ raise Fiddle::DLError, "OpenMP not found. Run `brew install libomp`"
13
+ else
14
+ raise e
15
+ end
11
16
  end
12
17
 
13
18
  extern "void thundersvm_train(int argc, char **argv)"
@@ -1,3 +1,3 @@
1
1
  module ThunderSVM
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thundersvm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-12 00:00:00.000000000 Z
11
+ date: 2020-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler