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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c6d294756964590d3ca64856f07e0d27a1cd958
|
4
|
+
data.tar.gz: 0f5359b20f08865399a7dc72a3d5ecb2d5ded52f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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::
|
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
|
data/opencl_ruby_ffi.gemspec
CHANGED
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.
|
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-
|
11
|
+
date: 2014-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: narray
|