fix pluto_parallel_schedule_with_remapping
@@ -755,10 +755,14 @@ __isl_give isl_union_map *pluto_parallel_schedule_with_remapping(isl_union_set *
if (options->parallel) {
*ploops = pluto_get_parallel_loops(prog, nploops);
+ if (!options->silent) {
printf("[pluto_mark_parallel] %d parallel loops\n", *nploops);
pluto_loops_print(*ploops, *nploops);
printf("\n");
}
+ }else{
+ *nploops = 0;
+ }
// Constructing remapping Matrix
Remapping *remapping = (Remapping *)malloc(sizeof(Remapping));
@@ -772,9 +776,8 @@ __isl_give isl_union_map *pluto_parallel_schedule_with_remapping(isl_union_set *
for(i = 0; i < prog->nstmts; i++) {
remapping->stmt_inv_matrices[i] = pluto_stmt_get_remapping(prog->stmts[i],
&remapping->stmt_divs[i]);
- if(!options->silent)
- {
- printf("Statement %d Id- %d\n",i,prog->stmts[i]->id);
+ if (!options->silent) {
+ printf("[libpluto] Statement %d Id- %d\n",i,prog->stmts[i]->id);
pluto_matrix_print(stdout, remapping->stmt_inv_matrices[i]);
}
}
