opencl_ruby_ffi 1.0.3 → 1.0.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6f786a54595a4363b22411ac225a5d44c984332
|
4
|
+
data.tar.gz: f50ddf84afe6ff0022c3ef7d4001864e497384c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b6a8a0ed56620924b0411e7eecad1a27c1546daebd9b0e94e6f8d8792c758907c3ee674cce4c6dffa4a3b2b216ab41e149691766ec5ae5e0d08d2b1a52a2cdc
|
7
|
+
data.tar.gz: 179386d9185ccb45c9f32fb431c6c66eb9c8d72eccadf8ec3b084319c356677c7fc2c5b691e3dc8f314b4cb4dac7c61695121caa93edaa60f05c06899044386b
|
@@ -50,12 +50,12 @@ module OpenCL
|
|
50
50
|
props = FFI::MemoryPointer::new( :cl_queue_properties, props_size )
|
51
51
|
i=0
|
52
52
|
if properties.to_i != 0 then
|
53
|
-
props[i].write_cl_queue_properties(
|
53
|
+
props[i].write_cl_queue_properties( CommandQueue::PROPERTIES )
|
54
54
|
props[i+1].write_cl_queue_properties( properties.to_i )
|
55
55
|
i += 2
|
56
56
|
end
|
57
57
|
if size then
|
58
|
-
props[i].write_cl_queue_properties(
|
58
|
+
props[i].write_cl_queue_properties( CommandQueue::SIZE )
|
59
59
|
props[i+1].write_cl_queue_properties( size )
|
60
60
|
i += 2
|
61
61
|
end
|
@@ -77,6 +77,10 @@ module OpenCL
|
|
77
77
|
include InnerGenerator
|
78
78
|
end
|
79
79
|
|
80
|
+
##
|
81
|
+
# :method: icd_suffix_khr()
|
82
|
+
# Returns a String containing the function name suffix used to identify extension functions to be directed to this platform by the ICD Loader
|
83
|
+
|
80
84
|
##
|
81
85
|
# :method: profile()
|
82
86
|
# Returns a String containing the profile name supported by the Platform
|
@@ -92,7 +96,7 @@ module OpenCL
|
|
92
96
|
##
|
93
97
|
# :mathod: vendor()
|
94
98
|
# Returns a String identifying the Platform vendor
|
95
|
-
%w(PROFILE VERSION NAME VENDOR).each { |prop|
|
99
|
+
%w(PROFILE VERSION NAME VENDOR ICD_SUFFIX_KHR).each { |prop|
|
96
100
|
eval get_info("Platform", :string, prop)
|
97
101
|
}
|
98
102
|
|
@@ -4,15 +4,19 @@ require 'ffi'
|
|
4
4
|
module OpenCL
|
5
5
|
extend FFI::Library
|
6
6
|
begin
|
7
|
-
ffi_lib "
|
7
|
+
ffi_lib ENV["LIBOPENCL_SO"]
|
8
8
|
rescue LoadError => e
|
9
9
|
begin
|
10
|
-
ffi_lib "
|
10
|
+
ffi_lib "OpenCL"
|
11
11
|
rescue LoadError => e
|
12
12
|
begin
|
13
|
-
ffi_lib
|
13
|
+
ffi_lib "libOpenCL.so.1"
|
14
14
|
rescue LoadError => e
|
15
|
-
|
15
|
+
begin
|
16
|
+
ffi_lib '/System/Library/Frameworks/OpenCL.framework/OpenCL'
|
17
|
+
rescue LoadError => e
|
18
|
+
raise "OpenCL implementation not found!"
|
19
|
+
end
|
16
20
|
end
|
17
21
|
end
|
18
22
|
end
|
data/opencl_ruby_ffi.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'opencl_ruby_ffi'
|
3
|
-
s.version = "1.0.
|
3
|
+
s.version = "1.0.4"
|
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"
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.has_rdoc = true
|
11
11
|
s.license = 'BSD'
|
12
12
|
s.required_ruby_version = '>= 1.8.7'
|
13
|
-
s.add_dependency 'narray', '~> 0.6
|
13
|
+
s.add_dependency 'narray', '~> 0.6', '>=0.6.0.8'
|
14
14
|
s.add_dependency 'ffi', '~> 1.9', '>=1.9.3'
|
15
15
|
s.add_dependency 'narray_ffi', '~> 1.0', '>=1.0.0'
|
16
16
|
end
|
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.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brice Videau
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: narray
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.6
|
19
|
+
version: '0.6'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 0.6.0.8
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.6
|
29
|
+
version: '0.6'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 0.6.0.8
|
@@ -120,4 +120,3 @@ signing_key:
|
|
120
120
|
specification_version: 4
|
121
121
|
summary: Ruby OpenCL FFI bindings
|
122
122
|
test_files: []
|
123
|
-
has_rdoc: true
|