ruby-mpi 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/ext/mpi/mpi.c +25 -3
- data/ruby-mpi.gemspec +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ad52c80f0ce804c3992de172ea34ac4671fb2b1
|
4
|
+
data.tar.gz: 75ce70d0dfd16c3627338e6aeb55e3971f0c9fc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ed2462f6e03dedfcac197bd8fa6b92764ef847cc6014d34a7c0c9c37f76402ea2fc1bf4c2edf12a26c09bf5354fce3e8e55bdecf3e5e2476fc929ba0596737e
|
7
|
+
data.tar.gz: e7caec6e0e8f29183410aa1274d1b01c60f44b22923006baff80ea9a560b62cddbbd1f690ff77b1ab5048daef96df8245cd2a4d178ace1510fdb0a3483a2920a
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.2
|
data/ext/mpi/mpi.c
CHANGED
@@ -5,6 +5,28 @@
|
|
5
5
|
#include "narray.h"
|
6
6
|
#include "mpi.h"
|
7
7
|
|
8
|
+
#if SIZEOF_SHORT == 2
|
9
|
+
# define NA_MPI_SINT MPI_SHORT
|
10
|
+
#else
|
11
|
+
---->> Please define NA_MPI_SINT manually because sizeof(short) != 2. <<----
|
12
|
+
#endif
|
13
|
+
|
14
|
+
#if SIZEOF_LONG == 4
|
15
|
+
# define NA_MPI_LINT MPI_LONG
|
16
|
+
#else
|
17
|
+
# if SIZEOF_INT == 4
|
18
|
+
# define NA_MPI_LINT MPI_INT
|
19
|
+
# else
|
20
|
+
---->> Please define NA_MPI_LINT manually because sizeof(long) != 4. <<----
|
21
|
+
# endif
|
22
|
+
#endif
|
23
|
+
|
24
|
+
#if SIZEOF_LONG_LONG == 8
|
25
|
+
# define NA_MPI_LLINT MPI_LONG_LONG
|
26
|
+
#else
|
27
|
+
---->> Please define NA_MPI_LLINT manually because sizeof(long long) != 8. <<----
|
28
|
+
#endif
|
29
|
+
|
8
30
|
|
9
31
|
#define OBJ2C(rb_obj, len, buffer, typ, off) \
|
10
32
|
{\
|
@@ -23,15 +45,15 @@
|
|
23
45
|
buffer = (void*)((char*)buffer + off);\
|
24
46
|
break;\
|
25
47
|
case NA_SINT:\
|
26
|
-
typ =
|
48
|
+
typ = NA_MPI_SINT;\
|
27
49
|
buffer = (void*)((char*)buffer + off*2);\
|
28
50
|
break;\
|
29
51
|
case NA_LINT:\
|
30
|
-
typ =
|
52
|
+
typ = NA_MPI_LINT;\
|
31
53
|
buffer = (void*)((char*)buffer + off*4);\
|
32
54
|
break;\
|
33
55
|
case NA_LLINT:\
|
34
|
-
typ =
|
56
|
+
typ = NA_MPI_LLINT;\
|
35
57
|
buffer = (void*)((char*)buffer + off*8);\
|
36
58
|
break;\
|
37
59
|
case NA_SFLOAT:\
|
data/ruby-mpi.gemspec
CHANGED
@@ -2,12 +2,12 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: ruby-mpi 0.3.
|
5
|
+
# stub: ruby-mpi 0.3.2 ruby lib
|
6
6
|
# stub: ext/mpi/extconf.rb
|
7
7
|
|
8
8
|
Gem::Specification.new do |s|
|
9
9
|
s.name = "ruby-mpi"
|
10
|
-
s.version = "0.3.
|
10
|
+
s.version = "0.3.2"
|
11
11
|
|
12
12
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
13
13
|
s.require_paths = ["lib"]
|