Skip to content

getting errors trying to parallelize my code #77

Description

@jainanuj

Hi,
I am trying to test pluto to parallelize a piece of my code. I get syntax
errors of this nature:

ajain@dwarf:~/pluto-0.11.4/examples/vi_alg$ ../../polycc cached_vi.c
--debug --parallel --tile
[Clan] Error: syntax error at line 395, column 25.
Error extracting polyhedra from source file: 'cached_vi.c'

The section of my code around which I have #pragma scop is as follows:

390 #pragma scop
391             for ( i = 0; i < state_cnt; i++ )
392             {
393                 l_state = pp->variable_ordering[i];
394                 delta = 0;
395                 if ( (w->parts[l_part].states[l_state].Terminal != 1)
&& (w->parts[l_part].states[l_state].Terminal !=5) )

396                     delta = value_update_iters( w, l_part, l_state );

397                 part_internal_heat = fabs( delta ) > part_internal_heat
? fabs( delta ): part_internal_heat;

398             }

399 #pragma endscop

Error is reported is on line# 395.
This code compiles perfectly otherwise and runs fine. Do I need to do
something more other than the two pragmas for "scop" and "endscop" ?

I was able to run the examples provided along with pluto.
Any pointers/help is appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions