opencl_ruby_ffi 1.0.8 → 1.0.9
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/Device.rb +2 -2
- data/lib/opencl_ruby_ffi/opencl_ruby_ffi_base.rb +3 -5
- 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: 4f729cd04c3368384227428f2ce8f2bde7df44af
|
4
|
+
data.tar.gz: 0584deceaadd7f30a389d43c2bd38279aba8c283
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 399ecc9b0dc04a94132a020df67a8e8467f87ddfde890960d9d08ffef29916210c1cadb1cfefe1eb0747a62ac140644d19e6571a6b6b6d8edd1e1fae03e77e2c
|
7
|
+
data.tar.gz: 348cc972f0dbe47c159019d1be1a421d02324fc9c227c27f1d614605b76c4714785442c5c430533895b1e0e107e8d89e201a6bc37367bf80f070ba4cf9b7f952
|
@@ -18,11 +18,11 @@ module OpenCL
|
|
18
18
|
}
|
19
19
|
props[properties.length].write_cl_device_partition_property(0)
|
20
20
|
device_number_ptr = FFI::MemoryPointer::new( :cl_uint )
|
21
|
-
error =
|
21
|
+
error = clCreateSubDevices( in_device, props, 0, nil, device_number_ptr )
|
22
22
|
error_check(error)
|
23
23
|
device_number = device_number_ptr.read_cl_uint
|
24
24
|
devices_ptr = FFI::MemoryPointer::new( Device, device_number )
|
25
|
-
error =
|
25
|
+
error = clCreateSubDevices( in_device, props, device_number, devices_ptr, nil )
|
26
26
|
error_check(error)
|
27
27
|
devices_ptr.get_array_of_pointer(0, device_number).collect { |device_ptr|
|
28
28
|
Device::new(device_ptr, false)
|
@@ -338,15 +338,13 @@ EOF
|
|
338
338
|
EOF
|
339
339
|
if ( klass == "Device" and ( name == "PARTITION_TYPE" or name == "PARTITION_PROPERTIES" ) ) or ( klass == "Context" and name == "PROPERTIES" ) then
|
340
340
|
s+= <<EOF
|
341
|
-
|
342
|
-
end
|
341
|
+
arr.reject! { |e| e.null? }
|
343
342
|
EOF
|
344
|
-
|
345
|
-
|
343
|
+
end
|
344
|
+
s+= <<EOF
|
346
345
|
return arr
|
347
346
|
end
|
348
347
|
EOF
|
349
|
-
end
|
350
348
|
return s
|
351
349
|
end
|
352
350
|
|
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.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brice Videau
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: narray
|