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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 33c6f6c98f527e3b236c88c4f6ef75f2b9623939
4
- data.tar.gz: 5596b98c34787aadd5638936dd56f2c13cbff801
3
+ metadata.gz: 4f729cd04c3368384227428f2ce8f2bde7df44af
4
+ data.tar.gz: 0584deceaadd7f30a389d43c2bd38279aba8c283
5
5
  SHA512:
6
- metadata.gz: 907ae966ca95005538844ffcb5a31925994cac4c784fae60622a1179884000ec9d89d39f7a5f32692a4433c1e2b56207abaa5d5e66fdb6b5026576c001f56112
7
- data.tar.gz: a8d5c6725809770ae832d6221a47ef002a0f086c03dd7190d873d4e8084ebe848b85956b1565f7de33b22171204b527201f10750e6ba890e9621120e4441973d
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 = clCreateSubDevice( in_device, props, 0, nil, device_number_ptr )
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 = clCreateSubDevice( in_device, props, device_number, devices_ptr, nil )
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
- return arr.reject! { |e| e == 0 }
342
- end
341
+ arr.reject! { |e| e.null? }
343
342
  EOF
344
- else
345
- s+= <<EOF
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
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'opencl_ruby_ffi'
3
- s.version = "1.0.8"
3
+ s.version = "1.0.9"
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: 1.0.8
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: 2015-11-23 00:00:00.000000000 Z
11
+ date: 2016-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: narray