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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/ext/mpi/mpi.c +25 -3
  4. data/ruby-mpi.gemspec +2 -2
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 64929885a627e6807187b2f3821f83cd83837f1f
4
- data.tar.gz: 3c885d5979f370b72524c5605306e1b65a445f37
3
+ metadata.gz: 0ad52c80f0ce804c3992de172ea34ac4671fb2b1
4
+ data.tar.gz: 75ce70d0dfd16c3627338e6aeb55e3971f0c9fc5
5
5
  SHA512:
6
- metadata.gz: 2ffea48dcf01971024bb608b2f8fd45b44ae01bc66028ea46405a981e1c5a698844283a8878175400eb2e23bf7bb3debd17b6293c79fbbe1cd0a0685425595c0
7
- data.tar.gz: f1fcc46f02f654ddd830af9e8749eced1ed400d7c9512e1a4f0570e5157ec6cacbe91e952b5be9ec4f5a5f9264d91d176338b903f28399862cf97f8fc88ac2d0
6
+ metadata.gz: 2ed2462f6e03dedfcac197bd8fa6b92764ef847cc6014d34a7c0c9c37f76402ea2fc1bf4c2edf12a26c09bf5354fce3e8e55bdecf3e5e2476fc929ba0596737e
7
+ data.tar.gz: e7caec6e0e8f29183410aa1274d1b01c60f44b22923006baff80ea9a560b62cddbbd1f690ff77b1ab5048daef96df8245cd2a4d178ace1510fdb0a3483a2920a
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.3.2
@@ -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 = MPI_SHORT;\
48
+ typ = NA_MPI_SINT;\
27
49
  buffer = (void*)((char*)buffer + off*2);\
28
50
  break;\
29
51
  case NA_LINT:\
30
- typ = MPI_LONG;\
52
+ typ = NA_MPI_LINT;\
31
53
  buffer = (void*)((char*)buffer + off*4);\
32
54
  break;\
33
55
  case NA_LLINT:\
34
- typ = MPI_LONG;\
56
+ typ = NA_MPI_LLINT;\
35
57
  buffer = (void*)((char*)buffer + off*8);\
36
58
  break;\
37
59
  case NA_SFLOAT:\
@@ -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.1 ruby lib
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.1"
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"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-mpi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seiya Nishizawa