opencl_ruby_ffi 0.996 → 0.997

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
  SHA1:
3
- metadata.gz: 0713a0dacbcdc402b03447ecb6de63b041b359a3
4
- data.tar.gz: 48115b80e8d5bade57ef1634972c52b1d3ce381b
3
+ metadata.gz: 4c6d294756964590d3ca64856f07e0d27a1cd958
4
+ data.tar.gz: 0f5359b20f08865399a7dc72a3d5ecb2d5ded52f
5
5
  SHA512:
6
- metadata.gz: 8ba6e9b12fb6ffb166c57613bfd76011fbc28d92fa57b72661591870d34d188db580c8ba8d548bc6d658b3142e3e8b7d10442d67539593e7f0945bcd618cdaa2
7
- data.tar.gz: 8dfe8b59516785150b979adf667ad85ce9dfae59589ab8167ee00181a323fecd5da5a0ea0876492c53859831636cfb8109e9e1ae04ac5a2512dbf6c42dd9c37e
6
+ metadata.gz: 8c9cacd57d48ef0dd809af9cee6d594c205dca00062d47274c0f932b6f02e9716b5c36e1f2a702598f086c9dc0ecae8fb48fe554d314f03918fde66975f025d6
7
+ data.tar.gz: 9eba6ab841b34ce1dc92659a07a186aa53c7b0967873aa71166a36667cd594a7bdda07a4cb80d3378c8256fa352ae31bfafb7f3122baf9ed53fdd6edbc7f0396
@@ -246,7 +246,7 @@ module OpenCL
246
246
  # checks if a :cl_int corresponds to an error code and raises the apropriate Error
247
247
  def error_check(errcode)
248
248
  return nil if errcode == SUCCESS
249
- klass = Error::CLASSES[errcode]
249
+ klass = Error::error_class(errcode)
250
250
  if klass then
251
251
  raise klass::new
252
252
  else
@@ -495,6 +495,11 @@ module OpenCL
495
495
 
496
496
  private_constant :CLASSES
497
497
 
498
+ # Returns the class corresponding to the error code (if any)
499
+ def self.error_class(errcode)
500
+ return CLASSES[errcode]
501
+ end
502
+
498
503
  # Returns a string representing the name corresponding to the error code
499
504
  def self.name(code)
500
505
  if CLASSES[code] then
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'opencl_ruby_ffi'
3
- s.version = "0.996"
3
+ s.version = "0.997"
4
4
  s.author = "Brice Videau"
5
5
  s.email = "brice.videau@imag.fr"
6
6
  s.homepage = "https://github.com/Nanosim-LIG/opencl-ruby"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opencl_ruby_ffi
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.996'
4
+ version: '0.997'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brice Videau
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-02 00:00:00.000000000 Z
11
+ date: 2014-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: narray