periscop / cloog

The CLooG Code Generator in the Polyhedral Model
GNU Lesser General Public License v2.1
40 stars 23 forks source link

Generate annotated Python code as output #39

Closed cristianrcv closed 6 years ago

cristianrcv commented 6 years ago

The main contribution of this PR is to generate Python code as output (a part from C and Fortran). The generated Python code is annotated in a OMP fashion (using comments of the form # parallel for PRIVATE() REDUCTION()) and can be executed sequentially. However, since Python lacks of a standard parallel annotation the comments are not processed to execute it in parallel (they are just comments). The main modifications to achieve this involve adding a new constant for Python language, modifying the pretty printer. Notice also that the INDENT_STEP has been changed to 4 because it has no effect on C/Fortran code but it does in Python (it is the default indent step for Python).

The rest of the contributions refer to:

cristianrcv commented 6 years ago

Rebased fork to fix merge conflicts.

cristianrcv commented 6 years ago

As discussed in other PRs for PERISCOP tools (https://github.com/periscop/candl/pull/14), I have removed the submodules_update.sh script.

cristianrcv commented 6 years ago

@harenome Could you please consider reviewing this PR since it is the only one that I have submitted that really matters to me?

cristianrcv commented 6 years ago

@Ced Could you please consider reviewing this PR?

cristianrcv commented 6 years ago

I use PLUTO with ISL version 0.18 so I cannot use the last CLooG version. Reverting to 0.18.5 and closing MR.