Skip to content

Commit 1b86b6a

Browse files
Fixed example (#290)
1 parent d331c8a commit 1b86b6a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test-pthread-split.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ thread_work(
3636
fprintf(stdout,"[%d] ============ Thread %d splitting in two pieces\n", tid, rank);
3737
qv_scope_t *pthread_subscope = NULL;
3838
rc = qv_scope_split(scope, 2, rank, &pthread_subscope);
39-
N if (rc != QV_SUCCESS) {
39+
if (rc != QV_SUCCESS) {
4040
ers = "qv_scope_split failed";
4141
qvi_test_panic("%s (rc=%s)", ers, qv_strerr(rc));
4242
}
@@ -127,7 +127,7 @@ main(void)
127127
fprintf(stdout,"\n");
128128

129129

130-
rc = qv_pthread_colors_fill(colors, nthreads, QV_POLICY_PACKED, stride, ncores, npieces);
130+
rc = qv_pthread_colors_fill(colors, nthreads, QV_POLICY_PACKED, stride, npieces);
131131
if (rc != QV_SUCCESS) {
132132
ers = "qv_pthread_colors_fill() failed";
133133
qvi_test_panic("%s (rc=%s)", ers, qv_strerr(rc));
@@ -201,7 +201,7 @@ main(void)
201201
fprintf(stdout,"\n");
202202

203203

204-
rc = qv_pthread_colors_fill(colors2, nthreads, QV_POLICY_PACKED, stride, ncores, ncores);
204+
rc = qv_pthread_colors_fill(colors2, nthreads, QV_POLICY_PACKED, stride, ncores);
205205
if (rc != QV_SUCCESS) {
206206
ers = "qv_pthread_colors_fill() failed";
207207
qvi_test_panic("%s (rc=%s)", ers, qv_strerr(rc));

0 commit comments

Comments
 (0)