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 +4 -4
- data/lib/opencl_ruby_ffi/CommandQueue.rb +8 -8
- data/lib/opencl_ruby_ffi/Event.rb +1 -1
- data/lib/opencl_ruby_ffi/SVM.rb +3 -3
- 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: fdcb6a798b01c3d88e50d3a357590ba5630e6912
|
4
|
+
data.tar.gz: 0ddb538e3b6ea0b1c4d2f22891ec4f88a78d0eb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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]
|
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.
|
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.
|
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(
|
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(
|
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
|
data/lib/opencl_ruby_ffi/SVM.rb
CHANGED
@@ -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.
|
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.
|
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.
|
256
|
+
return Event::new( event.read_pointer, false )
|
257
257
|
end
|
258
258
|
|
259
259
|
end
|
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.3.
|
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
|
+
date: 2016-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: narray
|