opencl_ruby_ffi 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0aba8dffd74f3c2ac432b00dfe42ef919b1c1142
4
- data.tar.gz: a4b39690f35a3c61be4aac4dfeae630dc113168c
3
+ metadata.gz: 28ce76fe3685cbbe05673c5b2b248805ea3e304e
4
+ data.tar.gz: 9c8f83e8b61c4f6f5eed749d58def7d83a96ffe4
5
5
  SHA512:
6
- metadata.gz: 9d40d15d5454e539259f42b923fd54728756f5b88fc2ed029c2686556f5cb7147fdd0b9ce71fbede6d5bfc112af38c82baca7285edd103cc849cab66f2c7b77f
7
- data.tar.gz: a98ccbef10f513978d3111627dd95c76178f86f84a9152d5bd176ff1de3d7eceab4f208aa7f3e11719fedda78cf3b8433e3b013ed075392e391fdb03af0a47af
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 )
@@ -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 )
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'opencl_ruby_ffi'
3
- s.version = "1.0.6"
3
+ s.version = "1.0.7"
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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opencl_ruby_ffi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brice Videau