cumo 0.3.2 → 0.3.3

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
  SHA256:
3
- metadata.gz: 5b17317cc0df56b966f0455be514318920624fb5869e45d442a81d3f71ee9e9d
4
- data.tar.gz: 50e06b7373b2d0a97c6c715686fc7a38b58fbeb86d17aa8ad189e0a1d9828a5c
3
+ metadata.gz: febb3beb76c3e4994bee998b7d9911765a8f0279a7c0db550e45601a1c31c9da
4
+ data.tar.gz: 60c87eb1810387de34667847b354eaa7e3d8d09ca31e09bd06bf4bbba1190578
5
5
  SHA512:
6
- metadata.gz: f558130296b89c55e5d506673dd3376274f95c57970cd6aa17d686e69c2e23e41d85a16fdfb84fcb7a4acc6addbd67ea855800de8eb1fa1e6b1bf4d061894109
7
- data.tar.gz: 642442d479765d459286474a514e047ab80273b9357b357f5509054f27cd52c27562f57c8af53a4efa5d8cb24afd4c2949afe1f2b962b9046ea4fd23935666b1
6
+ metadata.gz: c7fe6ade2ebf7af02cae19cd403161f369cb65aaf13918597230f35f1ec7148f05b485c6d3db9063a02a60a9a197156de08b74a35abf51c65e4dd1e7e069243b
7
+ data.tar.gz: d2e291b33102290ed4f22fd83c7ab3b69f9aae3f58e789577b41c9492d1fea761adbcd3efeaa46f7d05534e50d0a8ba033aaab65934a4627f8afa56c8efea305
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.3.3 (2019-05-02)
2
+
3
+ Fixes:
4
+
5
+ * Fix each and `each_with_index` to synchronize on each element
6
+
1
7
  # 0.3.2 (2019-05-02)
2
8
 
3
9
  Fixes:
@@ -10,8 +10,8 @@ extern "C" {
10
10
  #endif
11
11
  #endif
12
12
 
13
- #define CUMO_VERSION "0.3.2"
14
- #define CUMO_VERSION_CODE 32
13
+ #define CUMO_VERSION "0.3.3"
14
+ #define CUMO_VERSION_CODE 33
15
15
 
16
16
  bool cumo_compatible_mode_enabled_p();
17
17
  bool cumo_show_warning_enabled_p();
@@ -11,16 +11,17 @@ static void
11
11
  CUMO_INIT_PTR_IDX(lp, 0, p1, s1, idx1);
12
12
 
13
13
  CUMO_SHOW_SYNCHRONIZE_WARNING_ONCE("<%=name%>", "<%=type_name%>");
14
- cumo_cuda_runtime_check_status(cudaDeviceSynchronize());
15
14
 
16
15
  if (idx1) {
17
16
  for (; i--;) {
17
+ cumo_cuda_runtime_check_status(cudaDeviceSynchronize());
18
18
  CUMO_GET_DATA_INDEX(p1,idx1,dtype,x);
19
19
  y = m_data_to_num(x);
20
20
  rb_yield(y);
21
21
  }
22
22
  } else {
23
23
  for (; i--;) {
24
+ cumo_cuda_runtime_check_status(cudaDeviceSynchronize());
24
25
  CUMO_GET_DATA_STRIDE(p1,s1,dtype,x);
25
26
  y = m_data_to_num(x);
26
27
  rb_yield(y);
@@ -33,10 +33,10 @@ static void
33
33
  c[nd] = 0;
34
34
 
35
35
  CUMO_SHOW_SYNCHRONIZE_WARNING_ONCE("<%=name%>", "<%=type_name%>");
36
- cumo_cuda_runtime_check_status(cudaDeviceSynchronize());
37
36
 
38
37
  if (idx1) {
39
38
  for (; i--;) {
39
+ cumo_cuda_runtime_check_status(cudaDeviceSynchronize());
40
40
  CUMO_GET_DATA_INDEX(p1,idx1,dtype,x);
41
41
  yield_each_with_index(x,c,a,nd,md);
42
42
  c[nd]++;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cumo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naotoshi Seo