opencl_ruby_ffi 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/opencl_ruby_ffi/Kernel.rb +1 -1
- data/lib/opencl_ruby_ffi/Program.rb +1 -1
- data/opencl_ruby_ffi.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3da147b1b6ee1301a55b8101c54b79d047e080e9
|
4
|
+
data.tar.gz: f99e42e63b21a195ac80653093fe6deb24a79c0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbefcbc0ed03ca736b67202e294704af7568631a1d799b557f6fdbe36162e1a93ba9dd26854278627b9957e831e21ffab7e7c853246e7b9010a49f545223e01a
|
7
|
+
data.tar.gz: cbaaa49c9492fbe065ddc17c813be17329d0b92a5738533f4eb13366b4ae256c46639790cdbed9d98974c5f9ecb88e841bef8e241d6b18561fc357c49a14fbef
|
@@ -7,7 +7,7 @@ module OpenCL
|
|
7
7
|
error_check(error)
|
8
8
|
num_kernels = num_ptr.read_cl_uint
|
9
9
|
kernels_ptr = FFI::MemoryPointer::new( Kernel, num_kernels )
|
10
|
-
error = clCreateKernelsInProgram( program, num_kernels, kernels_ptr,
|
10
|
+
error = clCreateKernelsInProgram( program, num_kernels, kernels_ptr, nil )
|
11
11
|
error_check(error)
|
12
12
|
return kernels_ptr.get_array_of_pointer(0, num_kernels).collect { |kernel_ptr|
|
13
13
|
Kernel::new(kernel_ptr, false)
|
@@ -227,7 +227,7 @@ module OpenCL
|
|
227
227
|
error = OpenCL.clGetProgramInfo( self, KERNEL_NAMES, kernel_names_size.read_size_t, k_names, nil)
|
228
228
|
error_check(error)
|
229
229
|
k_names_string = k_names.read_string
|
230
|
-
|
230
|
+
return k_names_string.split(";")
|
231
231
|
end
|
232
232
|
|
233
233
|
# Returns the concatenated Program sources
|
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: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brice Videau
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: narray
|