opencl_ruby_ffi 1.3.0 → 1.3.1

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: 84004d4b456d5ea8aabfba8a811565b3b551086a
4
- data.tar.gz: 89b78273145a8457c34e61ae6e0fb887f8b19b41
3
+ metadata.gz: fdcb6a798b01c3d88e50d3a357590ba5630e6912
4
+ data.tar.gz: 0ddb538e3b6ea0b1c4d2f22891ec4f88a78d0eb4
5
5
  SHA512:
6
- metadata.gz: d799134cb834e51f1782c07c328bebf91dde9cec0134fbe60400ff4a2f79b46a2db38a0e6fbed5db7b5bf1f067a8843453050a22403ba1f5c1ea4130a7296476
7
- data.tar.gz: 8b9c3fa63dca70bf13b7deaca5ac4d1291f24b39c6de642edb1e78c483cb86ad8faa6e22daa7b661987724335400a13ab673be908b614a8c0913ab83c5e00093
6
+ metadata.gz: 0d5635ebdd72a6e050317696afa0b5d827cee2bdf6a34193bb37272e96d9f3984d82a5329ac5226ee26532c8d894f51c701218cbae58e68c74dcf39ba8816235
7
+ data.tar.gz: 88952cd81565ad78720a4db3cdbbae2e23e635bcba191cf9c21182f02cc2c796604875e448b9d29ebdb3a407afdd4e9dc646e61207985bc508f95c4a9d9ffb79
@@ -99,7 +99,7 @@ module OpenCL
99
99
  event = MemoryPointer::new( Event )
100
100
  error = clEnqueueMigrateMemObjects( command_queue, num_mem_objects, mem_list, flags, num_events, events, event )
101
101
  error_check( error )
102
- return Event::new( event.read_ptr, false )
102
+ return Event::new( event.read_pointer, false )
103
103
  end
104
104
 
105
105
  # Enqueues a command to map an Image into host memory
@@ -140,7 +140,7 @@ module OpenCL
140
140
  error = MemoryPointer::new( :cl_int )
141
141
  ptr = clEnqueueMapImage( command_queue, image, blocking, flags, origin, region, image_row_pitch, image_slice_pitch, num_events, events, event, error )
142
142
  error_check( error.read_cl_int )
143
- ev = Event::new( event.read_ptr, false )
143
+ ev = Event::new( event.read_pointer, false )
144
144
  return [ev, ptr, image_row_pitch.read_size_t, image_slice_pitch.read_size_t]
145
145
  end
146
146
 
@@ -174,13 +174,13 @@ module OpenCL
174
174
  offset = 0
175
175
  offset = options[:offset] if options[:offset]
176
176
  size = buffer.size - offset
177
- size = options[:size] - offset if options[:size]
177
+ size = options[:size] if options[:size]
178
178
  num_events, events = get_event_wait_list( options )
179
179
  event = MemoryPointer::new( Event )
180
180
  error = MemoryPointer::new( :cl_int )
181
181
  ptr = clEnqueueMapBuffer( command_queue, buffer, blocking, flags, offset, size, num_events, events, event, error )
182
182
  error_check( error.read_cl_int )
183
- ev = Event::new( event.read_ptr, false )
183
+ ev = Event::new( event.read_pointer, false )
184
184
  return [ev, ptr]
185
185
  end
186
186
 
@@ -205,7 +205,7 @@ module OpenCL
205
205
  event = MemoryPointer::new( Event )
206
206
  error = clEnqueueUnmapMemObject( command_queue, mem_obj, mapped_ptr, num_events, events, event )
207
207
  error_check( error )
208
- return Event::new( event.read_ptr, false )
208
+ return Event::new( event.read_pointer, false )
209
209
  end
210
210
 
211
211
  # Enqueues a command to read from a rectangular region from a Buffer object to host memory
@@ -1445,7 +1445,7 @@ module OpenCL
1445
1445
  # ==== Returns
1446
1446
  #
1447
1447
  # the Event associated with the command
1448
- def enqueue_unmap_mem_object( command_queue, mem_obj, mapped_ptr, options = {} )
1448
+ def enqueue_unmap_mem_object( mem_obj, mapped_ptr, options = {} )
1449
1449
  return OpenCL.enqueue_unmap_mem_object( self, mem_obj, mapped_ptr, options )
1450
1450
  end
1451
1451
 
@@ -1674,7 +1674,7 @@ module OpenCL
1674
1674
  # ==== Returns
1675
1675
  #
1676
1676
  # the Event associated with the command
1677
- def enqueue_svm_free(svm_pointers, options = {}, &block)
1677
+ def enqueue_svm_free( svm_pointers, options = {}, &block)
1678
1678
  return OpenCL.enqueue_svm_free(self, svm_pointers, options, &block)
1679
1679
  end
1680
1680
 
@@ -1694,7 +1694,7 @@ module OpenCL
1694
1694
  # ==== Returns
1695
1695
  #
1696
1696
  # the Event associated with the command
1697
- def enqueue_svm_memfill(command_queue, svm_ptr, pattern, size, options = {})
1697
+ def enqueue_svm_memfill( svm_ptr, pattern, size, options = {})
1698
1698
  return OpenCL.enqueue_svm_memfill(self, svm_ptr, pattern, size, options)
1699
1699
  end
1700
1700
 
@@ -72,7 +72,7 @@ module OpenCL
72
72
  extend InnerGenerator
73
73
 
74
74
  def inspect
75
- return "#<#{self.class.name}: #{command_type}>"
75
+ return "#<#{self.class.name}: #{command_type} (#{command_execution_status})>"
76
76
  end
77
77
 
78
78
  # Returns the CommandQueue associated with the Event, if it exists
@@ -191,7 +191,7 @@ module OpenCL
191
191
  event = MemoryPointer::new( Event )
192
192
  error = clEnqueueSVMMap( command_queue, blocking, flags, svm_ptr, size, num_events, events, event )
193
193
  error_check( error.read_cl_int )
194
- return Event::new( event.read_ptr, false )
194
+ return Event::new( event.read_pointer, false )
195
195
  end
196
196
 
197
197
  # Enqueues a command to unmap a previously mapped SVM memory area
@@ -215,7 +215,7 @@ module OpenCL
215
215
  event = MemoryPointer::new( Event )
216
216
  error = clEnqueueSVMUnmap( command_queue, svm_ptr, num_events, events, event )
217
217
  error_check( error )
218
- return Event::new( event.read_ptr, false )
218
+ return Event::new( event.read_pointer, false )
219
219
  end
220
220
 
221
221
  # Enqueues a command to migrate SVM memory area
@@ -253,7 +253,7 @@ module OpenCL
253
253
  event = MemoryPointer::new( Event )
254
254
  error = clEnqueueSVMMigrateMem( command_queue, num_svm_pointers, svn_ptrs_p, sizes_p, flags, num_events, events, event )
255
255
  error_check( error )
256
- return Event::new( event.read_ptr, false )
256
+ return Event::new( event.read_pointer, false )
257
257
  end
258
258
 
259
259
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'opencl_ruby_ffi'
3
- s.version = "1.3.0"
3
+ s.version = "1.3.1"
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.3.0
4
+ version: 1.3.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: 2016-05-11 00:00:00.000000000 Z
11
+ date: 2016-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: narray