red-arrow-gpu 0.8.0 → 0.10.0
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 +5 -5
- data/Gemfile +14 -11
- data/{doc/text/apache-2.0.txt → LICENSE.txt} +0 -0
- data/NOTICE.txt +2 -0
- data/README.md +31 -26
- data/Rakefile +14 -20
- data/dependency-check/Rakefile +14 -11
- data/lib/arrow-gpu/cuda-device-manager.rb +17 -13
- data/lib/arrow-gpu/loader.rb +14 -11
- data/lib/arrow-gpu/version.rb +23 -12
- data/lib/arrow-gpu.rb +14 -11
- data/red-arrow-gpu.gemspec +30 -31
- data/test/helper.rb +16 -11
- data/test/run-test.rb +19 -12
- data/test/test-cuda.rb +14 -11
- metadata +12 -42
- data/.yardopts +0 -6
- data/doc/text/news.md +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c1cb1e56042b71dc2f6e671801cb21b58a345d3d037ff9dcadeeefa8b132ff89
|
4
|
+
data.tar.gz: 9f019ca865313e1270d846fe9c1eae55ed03e2100d239611a5bca432d7796f73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cea946b92b68271624c72425e042b8108a6f6a8b4d75259a1b1941c1c9d68f096c38c001569c1867a781157f646c12b7844afc65b5bcf3f309fd08bfba09966a
|
7
|
+
data.tar.gz: 10c6a47d73b5f446f56a23e1eea94d77f667143cd6c346ef102c02f2aaacf9f04281a4341f357e8d97c05c7555a3115191e166e2cbc623b4de67f12335830887
|
data/Gemfile
CHANGED
@@ -1,18 +1,21 @@
|
|
1
1
|
# -*- ruby -*-
|
2
2
|
#
|
3
|
-
#
|
3
|
+
# Licensed to the Apache Software Foundation (ASF) under one
|
4
|
+
# or more contributor license agreements. See the NOTICE file
|
5
|
+
# distributed with this work for additional information
|
6
|
+
# regarding copyright ownership. The ASF licenses this file
|
7
|
+
# to you under the Apache License, Version 2.0 (the
|
8
|
+
# "License"); you may not use this file except in compliance
|
9
|
+
# with the License. You may obtain a copy of the License at
|
4
10
|
#
|
5
|
-
#
|
6
|
-
# you may not use this file except in compliance with the License.
|
7
|
-
# You may obtain a copy of the License at
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
12
|
#
|
9
|
-
#
|
10
|
-
#
|
11
|
-
#
|
12
|
-
#
|
13
|
-
#
|
14
|
-
#
|
15
|
-
# limitations under the License.
|
13
|
+
# Unless required by applicable law or agreed to in writing,
|
14
|
+
# software distributed under the License is distributed on an
|
15
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
16
|
+
# KIND, either express or implied. See the License for the
|
17
|
+
# specific language governing permissions and limitations
|
18
|
+
# under the License.
|
16
19
|
|
17
20
|
source "https://rubygems.org/"
|
18
21
|
|
File without changes
|
data/NOTICE.txt
ADDED
data/README.md
CHANGED
@@ -1,12 +1,25 @@
|
|
1
|
-
|
1
|
+
<!---
|
2
|
+
Licensed to the Apache Software Foundation (ASF) under one
|
3
|
+
or more contributor license agreements. See the NOTICE file
|
4
|
+
distributed with this work for additional information
|
5
|
+
regarding copyright ownership. The ASF licenses this file
|
6
|
+
to you under the Apache License, Version 2.0 (the
|
7
|
+
"License"); you may not use this file except in compliance
|
8
|
+
with the License. You may obtain a copy of the License at
|
2
9
|
|
3
|
-
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
4
11
|
|
5
|
-
|
12
|
+
Unless required by applicable law or agreed to in writing,
|
13
|
+
software distributed under the License is distributed on an
|
14
|
+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
15
|
+
KIND, either express or implied. See the License for the
|
16
|
+
specific language governing permissions and limitations
|
17
|
+
under the License.
|
18
|
+
-->
|
6
19
|
|
7
|
-
|
20
|
+
# Red Arrow GPU - Apache Arrow GPU Ruby
|
8
21
|
|
9
|
-
Red Arrow GPU is
|
22
|
+
Red Arrow GPU is the Ruby bindings of Apache Arrow GPU. Red Arrow GPU is based on GObject Introspection.
|
10
23
|
|
11
24
|
[Apache Arrow GPU](https://arrow.apache.org/) is an in-memory columnar data store on GPU.
|
12
25
|
|
@@ -22,6 +35,8 @@ gobject-introspection gem is a Ruby bindings of GObject Introspection. Red Arrow
|
|
22
35
|
|
23
36
|
Install Apache Arrow GPU GLib before install Red Arrow GPU. Use [packages.red-data-tools.org](https://github.com/red-data-tools/packages.red-data-tools.org) for installing Apache Arrow GPU GLib.
|
24
37
|
|
38
|
+
Note that the Apache Arrow GPU GLib packages are "unofficial". "Official" packages will be released in the future.
|
39
|
+
|
25
40
|
Install Red Arrow GPU after you install Apache Arrow GPU GLib:
|
26
41
|
|
27
42
|
```text
|
@@ -33,25 +48,15 @@ Install Red Arrow GPU after you install Apache Arrow GPU GLib:
|
|
33
48
|
```ruby
|
34
49
|
require "arrow-gpu"
|
35
50
|
|
36
|
-
|
51
|
+
manager = ArrowGPU::CUDADeviceManager.new
|
52
|
+
if manager.n_devices.zero?
|
53
|
+
raise "No GPU is found"
|
54
|
+
end
|
55
|
+
|
56
|
+
context = manager[0]
|
57
|
+
buffer = ArrowGPU::CUDABuffer.new(context, 128)
|
58
|
+
ArrowGPU::CUDABufferOutputStream.open(buffer) do |stream|
|
59
|
+
stream.write("Hello World")
|
60
|
+
end
|
61
|
+
puts buffer.copy_to_host(0, 11) # => "Hello World"
|
37
62
|
```
|
38
|
-
|
39
|
-
## Dependencies
|
40
|
-
|
41
|
-
* [Apache Arrow](https://arrow.apache.org/)
|
42
|
-
|
43
|
-
* [Arrow GLib](https://github.com/apache/arrow/tree/master/c_glib)
|
44
|
-
|
45
|
-
* [gobject-introspection gem](https://rubygems.org/gems/gobject-introspection)
|
46
|
-
|
47
|
-
## Authors
|
48
|
-
|
49
|
-
* Kouhei Sutou \<kou@clear-code.com\>
|
50
|
-
|
51
|
-
## License
|
52
|
-
|
53
|
-
Apache License 2.0. See `doc/text/apache-2.0.txt` and `NOTICE` for
|
54
|
-
details.
|
55
|
-
|
56
|
-
(Kouhei Sutou has a right to change the license including contributed
|
57
|
-
patches.)
|
data/Rakefile
CHANGED
@@ -1,22 +1,24 @@
|
|
1
1
|
# -*- ruby -*-
|
2
2
|
#
|
3
|
-
#
|
3
|
+
# Licensed to the Apache Software Foundation (ASF) under one
|
4
|
+
# or more contributor license agreements. See the NOTICE file
|
5
|
+
# distributed with this work for additional information
|
6
|
+
# regarding copyright ownership. The ASF licenses this file
|
7
|
+
# to you under the Apache License, Version 2.0 (the
|
8
|
+
# "License"); you may not use this file except in compliance
|
9
|
+
# with the License. You may obtain a copy of the License at
|
4
10
|
#
|
5
|
-
#
|
6
|
-
# you may not use this file except in compliance with the License.
|
7
|
-
# You may obtain a copy of the License at
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
12
|
#
|
9
|
-
#
|
10
|
-
#
|
11
|
-
#
|
12
|
-
#
|
13
|
-
#
|
14
|
-
#
|
15
|
-
# limitations under the License.
|
13
|
+
# Unless required by applicable law or agreed to in writing,
|
14
|
+
# software distributed under the License is distributed on an
|
15
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
16
|
+
# KIND, either express or implied. See the License for the
|
17
|
+
# specific language governing permissions and limitations
|
18
|
+
# under the License.
|
16
19
|
|
17
20
|
require "rubygems"
|
18
21
|
require "bundler/gem_helper"
|
19
|
-
require "packnga"
|
20
22
|
|
21
23
|
base_dir = File.join(File.dirname(__FILE__))
|
22
24
|
|
@@ -28,14 +30,6 @@ end
|
|
28
30
|
helper.install
|
29
31
|
spec = helper.gemspec
|
30
32
|
|
31
|
-
Packnga::DocumentTask.new(spec) do |task|
|
32
|
-
task.original_language = "en"
|
33
|
-
task.translate_language = "ja"
|
34
|
-
end
|
35
|
-
|
36
|
-
Packnga::ReleaseTask.new(spec) do
|
37
|
-
end
|
38
|
-
|
39
33
|
desc "Run tests"
|
40
34
|
task :test do
|
41
35
|
cd("dependency-check") do
|
data/dependency-check/Rakefile
CHANGED
@@ -1,18 +1,21 @@
|
|
1
1
|
# -*- ruby -*-
|
2
2
|
#
|
3
|
-
#
|
3
|
+
# Licensed to the Apache Software Foundation (ASF) under one
|
4
|
+
# or more contributor license agreements. See the NOTICE file
|
5
|
+
# distributed with this work for additional information
|
6
|
+
# regarding copyright ownership. The ASF licenses this file
|
7
|
+
# to you under the Apache License, Version 2.0 (the
|
8
|
+
# "License"); you may not use this file except in compliance
|
9
|
+
# with the License. You may obtain a copy of the License at
|
4
10
|
#
|
5
|
-
#
|
6
|
-
# you may not use this file except in compliance with the License.
|
7
|
-
# You may obtain a copy of the License at
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
12
|
#
|
9
|
-
#
|
10
|
-
#
|
11
|
-
#
|
12
|
-
#
|
13
|
-
#
|
14
|
-
#
|
15
|
-
# limitations under the License.
|
13
|
+
# Unless required by applicable law or agreed to in writing,
|
14
|
+
# software distributed under the License is distributed on an
|
15
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
16
|
+
# KIND, either express or implied. See the License for the
|
17
|
+
# specific language governing permissions and limitations
|
18
|
+
# under the License.
|
16
19
|
|
17
20
|
require "pkg-config"
|
18
21
|
require "native-package-installer"
|
@@ -1,21 +1,25 @@
|
|
1
|
-
#
|
1
|
+
# Licensed to the Apache Software Foundation (ASF) under one
|
2
|
+
# or more contributor license agreements. See the NOTICE file
|
3
|
+
# distributed with this work for additional information
|
4
|
+
# regarding copyright ownership. The ASF licenses this file
|
5
|
+
# to you under the Apache License, Version 2.0 (the
|
6
|
+
# "License"); you may not use this file except in compliance
|
7
|
+
# with the License. You may obtain a copy of the License at
|
2
8
|
#
|
3
|
-
#
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
6
10
|
#
|
7
|
-
#
|
8
|
-
#
|
9
|
-
#
|
10
|
-
#
|
11
|
-
#
|
12
|
-
#
|
13
|
-
# limitations under the License.
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
14
17
|
|
15
18
|
module ArrowGPU
|
16
19
|
class CUDADeviceManager
|
17
|
-
# Experimental.
|
18
|
-
#
|
20
|
+
# Experimental.
|
21
|
+
#
|
22
|
+
# Can we think device manager is a container of contexts?
|
19
23
|
alias_method :[], :get_context
|
20
24
|
end
|
21
25
|
end
|
data/lib/arrow-gpu/loader.rb
CHANGED
@@ -1,16 +1,19 @@
|
|
1
|
-
#
|
1
|
+
# Licensed to the Apache Software Foundation (ASF) under one
|
2
|
+
# or more contributor license agreements. See the NOTICE file
|
3
|
+
# distributed with this work for additional information
|
4
|
+
# regarding copyright ownership. The ASF licenses this file
|
5
|
+
# to you under the Apache License, Version 2.0 (the
|
6
|
+
# "License"); you may not use this file except in compliance
|
7
|
+
# with the License. You may obtain a copy of the License at
|
2
8
|
#
|
3
|
-
#
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
6
10
|
#
|
7
|
-
#
|
8
|
-
#
|
9
|
-
#
|
10
|
-
#
|
11
|
-
#
|
12
|
-
#
|
13
|
-
# limitations under the License.
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
14
17
|
|
15
18
|
module ArrowGPU
|
16
19
|
class Loader < GObjectIntrospection::Loader
|
data/lib/arrow-gpu/version.rb
CHANGED
@@ -1,17 +1,28 @@
|
|
1
|
-
#
|
1
|
+
# Licensed to the Apache Software Foundation (ASF) under one
|
2
|
+
# or more contributor license agreements. See the NOTICE file
|
3
|
+
# distributed with this work for additional information
|
4
|
+
# regarding copyright ownership. The ASF licenses this file
|
5
|
+
# to you under the Apache License, Version 2.0 (the
|
6
|
+
# "License"); you may not use this file except in compliance
|
7
|
+
# with the License. You may obtain a copy of the License at
|
2
8
|
#
|
3
|
-
#
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
6
10
|
#
|
7
|
-
#
|
8
|
-
#
|
9
|
-
#
|
10
|
-
#
|
11
|
-
#
|
12
|
-
#
|
13
|
-
# limitations under the License.
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
14
17
|
|
15
18
|
module ArrowGPU
|
16
|
-
|
19
|
+
module Version
|
20
|
+
MAJOR = 0
|
21
|
+
MINOR = 10
|
22
|
+
MICRO = 0
|
23
|
+
TAG =
|
24
|
+
STRING = "0.10.0"
|
25
|
+
end
|
26
|
+
|
27
|
+
VERSION = Version::STRING
|
17
28
|
end
|
data/lib/arrow-gpu.rb
CHANGED
@@ -1,16 +1,19 @@
|
|
1
|
-
#
|
1
|
+
# Licensed to the Apache Software Foundation (ASF) under one
|
2
|
+
# or more contributor license agreements. See the NOTICE file
|
3
|
+
# distributed with this work for additional information
|
4
|
+
# regarding copyright ownership. The ASF licenses this file
|
5
|
+
# to you under the Apache License, Version 2.0 (the
|
6
|
+
# "License"); you may not use this file except in compliance
|
7
|
+
# with the License. You may obtain a copy of the License at
|
2
8
|
#
|
3
|
-
#
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
6
10
|
#
|
7
|
-
#
|
8
|
-
#
|
9
|
-
#
|
10
|
-
#
|
11
|
-
#
|
12
|
-
#
|
13
|
-
# limitations under the License.
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
14
17
|
|
15
18
|
require "arrow"
|
16
19
|
|
data/red-arrow-gpu.gemspec
CHANGED
@@ -1,44 +1,45 @@
|
|
1
1
|
# -*- ruby -*-
|
2
2
|
#
|
3
|
-
#
|
3
|
+
# Licensed to the Apache Software Foundation (ASF) under one
|
4
|
+
# or more contributor license agreements. See the NOTICE file
|
5
|
+
# distributed with this work for additional information
|
6
|
+
# regarding copyright ownership. The ASF licenses this file
|
7
|
+
# to you under the Apache License, Version 2.0 (the
|
8
|
+
# "License"); you may not use this file except in compliance
|
9
|
+
# with the License. You may obtain a copy of the License at
|
4
10
|
#
|
5
|
-
#
|
6
|
-
# you may not use this file except in compliance with the License.
|
7
|
-
# You may obtain a copy of the License at
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
12
|
#
|
9
|
-
#
|
10
|
-
#
|
11
|
-
#
|
12
|
-
#
|
13
|
-
#
|
14
|
-
#
|
15
|
-
# limitations under the License.
|
16
|
-
|
17
|
-
clean_white_space = lambda do |entry|
|
18
|
-
entry.gsub(/(\A\n+|\n+\z)/, '') + "\n"
|
19
|
-
end
|
13
|
+
# Unless required by applicable law or agreed to in writing,
|
14
|
+
# software distributed under the License is distributed on an
|
15
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
16
|
+
# KIND, either express or implied. See the License for the
|
17
|
+
# specific language governing permissions and limitations
|
18
|
+
# under the License.
|
20
19
|
|
21
|
-
|
22
|
-
require "arrow-gpu/version"
|
20
|
+
require_relative "version"
|
23
21
|
|
24
22
|
Gem::Specification.new do |spec|
|
25
23
|
spec.name = "red-arrow-gpu"
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
24
|
+
version_components = [
|
25
|
+
ArrowGPU::Version::MAJOR.to_s,
|
26
|
+
ArrowGPU::Version::MINOR.to_s,
|
27
|
+
ArrowGPU::Version::MICRO.to_s,
|
28
|
+
# "beta1",
|
29
|
+
]
|
30
|
+
spec.version = version_components.join(".")
|
31
|
+
spec.homepage = "https://arrow.apache.org/"
|
32
|
+
spec.authors = ["Apache Arrow Developers"]
|
33
|
+
spec.email = ["dev@arrow.apache.org"]
|
30
34
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
description = clean_white_space.call(entries[entries.index("Description") + 1])
|
36
|
-
spec.summary, spec.description, = description.split(/\n\n+/, 3)
|
35
|
+
spec.summary = "Red Arrow GPU is the Ruby bindings of Apache Arrow GPU"
|
36
|
+
spec.description =
|
37
|
+
"Apache Arrow GPU is a common in-memory columnar data store on GPU. " +
|
38
|
+
"It's useful to share and process large data."
|
37
39
|
spec.license = "Apache-2.0"
|
38
40
|
spec.files = ["README.md", "Rakefile", "Gemfile", "#{spec.name}.gemspec"]
|
39
|
-
spec.files += [".
|
41
|
+
spec.files += ["LICENSE.txt", "NOTICE.txt"]
|
40
42
|
spec.files += Dir.glob("lib/**/*.rb")
|
41
|
-
spec.files += Dir.glob("doc/text/*")
|
42
43
|
spec.test_files += Dir.glob("test/**/*")
|
43
44
|
spec.extensions = ["dependency-check/Rakefile"]
|
44
45
|
|
@@ -47,6 +48,4 @@ Gem::Specification.new do |spec|
|
|
47
48
|
spec.add_development_dependency("bundler")
|
48
49
|
spec.add_development_dependency("rake")
|
49
50
|
spec.add_development_dependency("test-unit")
|
50
|
-
spec.add_development_dependency("packnga")
|
51
|
-
spec.add_development_dependency("kramdown")
|
52
51
|
end
|
data/test/helper.rb
CHANGED
@@ -1,16 +1,21 @@
|
|
1
|
-
#
|
1
|
+
# Licensed to the Apache Software Foundation (ASF) under one
|
2
|
+
# or more contributor license agreements. See the NOTICE file
|
3
|
+
# distributed with this work for additional information
|
4
|
+
# regarding copyright ownership. The ASF licenses this file
|
5
|
+
# to you under the Apache License, Version 2.0 (the
|
6
|
+
# "License"); you may not use this file except in compliance
|
7
|
+
# with the License. You may obtain a copy of the License at
|
2
8
|
#
|
3
|
-
#
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
6
10
|
#
|
7
|
-
#
|
8
|
-
#
|
9
|
-
#
|
10
|
-
#
|
11
|
-
#
|
12
|
-
#
|
13
|
-
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
17
|
+
|
18
|
+
require_relative "../version"
|
14
19
|
|
15
20
|
require "arrow-gpu"
|
16
21
|
|
data/test/run-test.rb
CHANGED
@@ -1,28 +1,35 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
#
|
3
|
-
#
|
3
|
+
# Licensed to the Apache Software Foundation (ASF) under one
|
4
|
+
# or more contributor license agreements. See the NOTICE file
|
5
|
+
# distributed with this work for additional information
|
6
|
+
# regarding copyright ownership. The ASF licenses this file
|
7
|
+
# to you under the Apache License, Version 2.0 (the
|
8
|
+
# "License"); you may not use this file except in compliance
|
9
|
+
# with the License. You may obtain a copy of the License at
|
4
10
|
#
|
5
|
-
#
|
6
|
-
# you may not use this file except in compliance with the License.
|
7
|
-
# You may obtain a copy of the License at
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
12
|
#
|
9
|
-
#
|
10
|
-
#
|
11
|
-
#
|
12
|
-
#
|
13
|
-
#
|
14
|
-
#
|
15
|
-
# limitations under the License.
|
13
|
+
# Unless required by applicable law or agreed to in writing,
|
14
|
+
# software distributed under the License is distributed on an
|
15
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
16
|
+
# KIND, either express or implied. See the License for the
|
17
|
+
# specific language governing permissions and limitations
|
18
|
+
# under the License.
|
16
19
|
|
17
20
|
$VERBOSE = true
|
18
21
|
|
19
22
|
require "pathname"
|
20
23
|
|
21
|
-
base_dir = Pathname.new(
|
24
|
+
base_dir = Pathname.new(__dir__).parent.expand_path
|
25
|
+
arrow_base_dir = base_dir.parent + "red-arrow"
|
22
26
|
|
23
27
|
lib_dir = base_dir + "lib"
|
24
28
|
test_dir = base_dir + "test"
|
25
29
|
|
30
|
+
arrow_lib_dir = arrow_base_dir + "lib"
|
31
|
+
|
32
|
+
$LOAD_PATH.unshift(arrow_lib_dir.to_s)
|
26
33
|
$LOAD_PATH.unshift(lib_dir.to_s)
|
27
34
|
|
28
35
|
require_relative "helper"
|
data/test/test-cuda.rb
CHANGED
@@ -1,16 +1,19 @@
|
|
1
|
-
#
|
1
|
+
# Licensed to the Apache Software Foundation (ASF) under one
|
2
|
+
# or more contributor license agreements. See the NOTICE file
|
3
|
+
# distributed with this work for additional information
|
4
|
+
# regarding copyright ownership. The ASF licenses this file
|
5
|
+
# to you under the Apache License, Version 2.0 (the
|
6
|
+
# "License"); you may not use this file except in compliance
|
7
|
+
# with the License. You may obtain a copy of the License at
|
2
8
|
#
|
3
|
-
#
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
6
10
|
#
|
7
|
-
#
|
8
|
-
#
|
9
|
-
#
|
10
|
-
#
|
11
|
-
#
|
12
|
-
#
|
13
|
-
# limitations under the License.
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
14
17
|
|
15
18
|
class TestCUDA < Test::Unit::TestCase
|
16
19
|
def setup
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: red-arrow-gpu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Apache Arrow Developers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: red-arrow
|
@@ -66,50 +66,21 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
-
|
70
|
-
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: kramdown
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
|
-
description: "[Apache Arrow GPU](https://arrow.apache.org/) is an in-memory columnar
|
98
|
-
data store on GPU."
|
69
|
+
description: Apache Arrow GPU is a common in-memory columnar data store on GPU. It's
|
70
|
+
useful to share and process large data.
|
99
71
|
email:
|
100
|
-
-
|
72
|
+
- dev@arrow.apache.org
|
101
73
|
executables: []
|
102
74
|
extensions:
|
103
75
|
- dependency-check/Rakefile
|
104
76
|
extra_rdoc_files: []
|
105
77
|
files:
|
106
|
-
- ".yardopts"
|
107
78
|
- Gemfile
|
79
|
+
- LICENSE.txt
|
80
|
+
- NOTICE.txt
|
108
81
|
- README.md
|
109
82
|
- Rakefile
|
110
83
|
- dependency-check/Rakefile
|
111
|
-
- doc/text/apache-2.0.txt
|
112
|
-
- doc/text/news.md
|
113
84
|
- lib/arrow-gpu.rb
|
114
85
|
- lib/arrow-gpu/cuda-device-manager.rb
|
115
86
|
- lib/arrow-gpu/loader.rb
|
@@ -118,7 +89,7 @@ files:
|
|
118
89
|
- test/helper.rb
|
119
90
|
- test/run-test.rb
|
120
91
|
- test/test-cuda.rb
|
121
|
-
homepage: https://
|
92
|
+
homepage: https://arrow.apache.org/
|
122
93
|
licenses:
|
123
94
|
- Apache-2.0
|
124
95
|
metadata: {}
|
@@ -138,12 +109,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
109
|
version: '0'
|
139
110
|
requirements: []
|
140
111
|
rubyforge_project:
|
141
|
-
rubygems_version:
|
112
|
+
rubygems_version: 3.0.0.beta1
|
142
113
|
signing_key:
|
143
114
|
specification_version: 4
|
144
|
-
summary: Red Arrow GPU is
|
145
|
-
on GObject Introspection.
|
115
|
+
summary: Red Arrow GPU is the Ruby bindings of Apache Arrow GPU
|
146
116
|
test_files:
|
147
|
-
- test/helper.rb
|
148
117
|
- test/test-cuda.rb
|
118
|
+
- test/helper.rb
|
149
119
|
- test/run-test.rb
|
data/.yardopts
DELETED