KappaCUDA 1.2.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.
- data/KappaCUDA.i +166 -0
- data/KappaCUDA_wrap.cpp +30165 -0
- data/extconf.rb +17 -0
- data/test.rb +10 -0
- metadata +70 -0
data/extconf.rb
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
require 'mkmf'
|
|
2
|
+
require 'rbconfig'
|
|
3
|
+
cpp_command('g++') if RUBY_VERSION < '1.9'
|
|
4
|
+
if WINDOZE = Config::CONFIG['host_os'] =~ /mswin|mingw/
|
|
5
|
+
dir_config('cuda','/cuda/include','/cuda/lib')
|
|
6
|
+
dir_config('kappa','/Program Files/Kappa/include','/Program Files/Kappa/lib')
|
|
7
|
+
else
|
|
8
|
+
dir_config('cuda','/usr/local/cuda/include','/usr/local/cuda/lib')
|
|
9
|
+
end
|
|
10
|
+
$libs = append_library($libs,'Kappa')
|
|
11
|
+
$libs = append_library($libs,'KappaConfig')
|
|
12
|
+
$libs = append_library($libs,'KappaParser')
|
|
13
|
+
$libs = append_library($libs,'KappaPlugin')
|
|
14
|
+
$libs = append_library($libs,'ffi')
|
|
15
|
+
$libs = append_library($libs,'pcrecpp')
|
|
16
|
+
$libs = append_library($libs,'cuda')
|
|
17
|
+
create_makefile("KappaCUDA")
|
data/test.rb
ADDED
metadata
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: KappaCUDA
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
hash: 31
|
|
5
|
+
prerelease: false
|
|
6
|
+
segments:
|
|
7
|
+
- 1
|
|
8
|
+
- 2
|
|
9
|
+
- 0
|
|
10
|
+
version: 1.2.0
|
|
11
|
+
platform: ruby
|
|
12
|
+
authors:
|
|
13
|
+
- Psi Lambda LLC
|
|
14
|
+
autorequire:
|
|
15
|
+
bindir: bin
|
|
16
|
+
cert_chain: []
|
|
17
|
+
|
|
18
|
+
date: 2010-06-28 00:00:00 -05:00
|
|
19
|
+
default_executable:
|
|
20
|
+
dependencies: []
|
|
21
|
+
|
|
22
|
+
description: KappaConfig is a module to give easy access to NVIDIA CUDA from Ruby using the Kappa Library.
|
|
23
|
+
email: kappa@psilambda.com
|
|
24
|
+
executables: []
|
|
25
|
+
|
|
26
|
+
extensions: []
|
|
27
|
+
|
|
28
|
+
extra_rdoc_files: []
|
|
29
|
+
|
|
30
|
+
files:
|
|
31
|
+
- test.rb
|
|
32
|
+
- extconf.rb
|
|
33
|
+
- KappaCUDA.i
|
|
34
|
+
- KappaCUDA_wrap.cpp
|
|
35
|
+
has_rdoc: true
|
|
36
|
+
homepage: http://psilambda.com
|
|
37
|
+
licenses: []
|
|
38
|
+
|
|
39
|
+
post_install_message:
|
|
40
|
+
rdoc_options: []
|
|
41
|
+
|
|
42
|
+
require_paths:
|
|
43
|
+
- lib
|
|
44
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
45
|
+
none: false
|
|
46
|
+
requirements:
|
|
47
|
+
- - ">="
|
|
48
|
+
- !ruby/object:Gem::Version
|
|
49
|
+
hash: 3
|
|
50
|
+
segments:
|
|
51
|
+
- 0
|
|
52
|
+
version: "0"
|
|
53
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
54
|
+
none: false
|
|
55
|
+
requirements:
|
|
56
|
+
- - ">="
|
|
57
|
+
- !ruby/object:Gem::Version
|
|
58
|
+
hash: 3
|
|
59
|
+
segments:
|
|
60
|
+
- 0
|
|
61
|
+
version: "0"
|
|
62
|
+
requirements: []
|
|
63
|
+
|
|
64
|
+
rubyforge_project:
|
|
65
|
+
rubygems_version: 1.3.7
|
|
66
|
+
signing_key:
|
|
67
|
+
specification_version: 3
|
|
68
|
+
summary: Allows Ruby scripts to use NVIDIA CUDA using the Kappa Library.
|
|
69
|
+
test_files: []
|
|
70
|
+
|