opencl_ruby_ffi 1.0.6 → 1.0.7
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/Program.rb +1 -0
- data/lib/opencl_ruby_ffi/SVM.rb +5 -0
- data/opencl_ruby_ffi.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28ce76fe3685cbbe05673c5b2b248805ea3e304e
|
4
|
+
data.tar.gz: 9c8f83e8b61c4f6f5eed749d58def7d83a96ffe4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2cf19839650fcbb986c61780a01218a0345ed804be8e1b0bce7fbdc70fd4f176663ba0569b5fa715f3e0d0d996a240c5db4b7ec8b82293cb2e0a824cf9655c4
|
7
|
+
data.tar.gz: a5d19376e5e6fce5d3bb2c46e9a53880dc7122ef303d41d16fa6bc1dd09f8b0c5195010b707e41664ef6a0e4dcfeacb933880b68fa835e9c822a631c6e1de4ba
|
@@ -193,6 +193,7 @@ module OpenCL
|
|
193
193
|
# * +context+ - Context the created Program will be associated to
|
194
194
|
# * +il+ - a binary string containing the intermediate level representation of the program
|
195
195
|
def self.create_program_with_il(context, il)
|
196
|
+
error_check(INVALID_OPERATION) if context.platform.version_number < 2.1
|
196
197
|
length = il.bytesize
|
197
198
|
il_p = FFI::MemoryPointer::new( length )
|
198
199
|
error = FFI::MemoryPointer::new( :cl_int )
|
data/lib/opencl_ruby_ffi/SVM.rb
CHANGED
@@ -86,6 +86,7 @@ module OpenCL
|
|
86
86
|
#
|
87
87
|
# the Event associated with the command
|
88
88
|
def self.enqueue_svm_free(command_queue, svm_pointers, options = {}, &block)
|
89
|
+
error_check(INVALID_OPERATION) if command_queue.context.platform.version_number < 2.0
|
89
90
|
pointers = [svm_pointers].flatten
|
90
91
|
num_pointers = pointers.length
|
91
92
|
ptr = FFI::MemoryPointer::new( :pointer, num_pointers)
|
@@ -147,6 +148,7 @@ module OpenCL
|
|
147
148
|
#
|
148
149
|
# the Event associated with the command
|
149
150
|
def self.enqueue_svm_memfill(command_queue, svm_ptr, pattern, size, options = {})
|
151
|
+
error_check(INVALID_OPERATION) if command_queue.context.platform.version_number < 2.0
|
150
152
|
num_events, events = get_event_wait_list( options )
|
151
153
|
pattern_size = pattern.size
|
152
154
|
pattern_size = options[:pattern_size] if options[:pattern_size]
|
@@ -176,6 +178,7 @@ module OpenCL
|
|
176
178
|
#
|
177
179
|
# the Event associated with the command
|
178
180
|
def self.enqueue_svm_map( command_queue, svm_ptr, size, map_flags, options = {} )
|
181
|
+
error_check(INVALID_OPERATION) if command_queue.context.platform.version_number < 2.0
|
179
182
|
blocking = FALSE
|
180
183
|
blocking = TRUE if options[:blocking] or options[:blocking_map]
|
181
184
|
flags = get_flags( {:flags => map_flags} )
|
@@ -202,6 +205,7 @@ module OpenCL
|
|
202
205
|
#
|
203
206
|
# the Event associated with the command
|
204
207
|
def self.enqueue_svm_unmap( command_queue, svm_ptr, options = {} )
|
208
|
+
error_check(INVALID_OPERATION) if command_queue.context.platform.version_number < 2.0
|
205
209
|
num_events, events = get_event_wait_list( options )
|
206
210
|
event = FFI::MemoryPointer::new( Event )
|
207
211
|
error = clEnqueueSVMUnmap( command_queue, svm_ptr, num_events, events, event )
|
@@ -226,6 +230,7 @@ module OpenCL
|
|
226
230
|
#
|
227
231
|
# the Event associated with the command
|
228
232
|
def self.enqueue_svm_migrate_mem( command_queue, svn_ptrs, options = {} )
|
233
|
+
error_check(INVALID_OPERATION) if command_queue.context.platform.version_number < 2.1
|
229
234
|
svn_ptrs = [svn_ptrs].flatten
|
230
235
|
num_svm_pointers = svn_ptrs.length
|
231
236
|
num_events, events = get_event_wait_list( options )
|
data/opencl_ruby_ffi.gemspec
CHANGED