BOAST 0.91 → 0.92

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/BOAST.gemspec +1 -1
  2. data/lib/BOAST/Algorithm.rb +8 -1
  3. metadata +2 -2
data/BOAST.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'BOAST'
3
- s.version = "0.91"
3
+ s.version = "0.92"
4
4
  s.author = "Brice Videau"
5
5
  s.email = "brice.videau@imag.fr"
6
6
  s.homepage = "https://forge.imag.fr/projects/boast/"
@@ -8,8 +8,15 @@ module BOAST
8
8
  CUDA = 4
9
9
  X86 = 1
10
10
  ARM = 2
11
+
12
+ def BOAST::get_default_lang
13
+ lang = BOAST::const_get(ENV["BOAST_LANG"]) if ENV["BOAST_LANG"]
14
+ return lang if lang
15
+ return BOAST::FORTRAN
16
+ end
17
+
11
18
  @@output = STDOUT
12
- @@lang = FORTRAN
19
+ @@lang = BOAST::get_default_lang
13
20
  @@replace_constants = true
14
21
  @@default_int_size = 4
15
22
  @@default_int_signed = true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: BOAST
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.91'
4
+ version: '0.92'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-06-05 00:00:00.000000000 Z
12
+ date: 2014-06-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: narray