opencl_ruby_ffi 0.93 → 0.94

Sign up to get free protection for your applications and to get access to all the features.
@@ -130,6 +130,8 @@ module OpenCL
130
130
  eval OpenCL.get_info("Kernel", :string, prop)
131
131
  }
132
132
 
133
+ alias name function_name
134
+
133
135
  ##
134
136
  # :method: num_args()
135
137
  # Returns the number of arguments for the Kernel
@@ -65,6 +65,9 @@ module OpenCL
65
65
  }
66
66
  end
67
67
 
68
+ class << self
69
+ alias platforms get_platforms
70
+ end
68
71
 
69
72
  # Maps the cl_platform_id object of OpenCL
70
73
  class Platform
@@ -195,7 +195,7 @@ module OpenCL
195
195
 
196
196
  # Extracts the :properties named option (for a CommandQueue) from the hash given and returns the properties values
197
197
  def self.get_command_queue_properties( options )
198
- properties = nil
198
+ properties = 0
199
199
  if options[:properties] then
200
200
  if options[:properties].respond_to?(:each) then
201
201
  options[:properties].each { |f| properties = properties | f }
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'opencl_ruby_ffi'
3
- s.version = "0.93"
3
+ s.version = "0.94"
4
4
  s.author = "Brice Videau"
5
5
  s.email = "brice.videau@imag.fr"
6
6
  s.homepage = "https://forge.imag.fr/projects/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: '0.93'
4
+ version: '0.94'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-04-01 00:00:00.000000000 Z
12
+ date: 2014-04-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: narray