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 +4 -4
- data/CHANGELOG.md +6 -0
- data/ext/cumo/include/cumo.h +2 -2
- data/ext/cumo/narray/gen/tmpl/each.c +2 -1
- data/ext/cumo/narray/gen/tmpl/each_with_index.c +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: febb3beb76c3e4994bee998b7d9911765a8f0279a7c0db550e45601a1c31c9da
|
4
|
+
data.tar.gz: 60c87eb1810387de34667847b354eaa7e3d8d09ca31e09bd06bf4bbba1190578
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7fe6ade2ebf7af02cae19cd403161f369cb65aaf13918597230f35f1ec7148f05b485c6d3db9063a02a60a9a197156de08b74a35abf51c65e4dd1e7e069243b
|
7
|
+
data.tar.gz: d2e291b33102290ed4f22fd83c7ab3b69f9aae3f58e789577b41c9492d1fea761adbcd3efeaa46f7d05534e50d0a8ba033aaab65934a4627f8afa56c8efea305
|
data/CHANGELOG.md
CHANGED
data/ext/cumo/include/cumo.h
CHANGED
@@ -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]++;
|