Skip to content

OpenMP support in AST and ASR #3777

@certik

Description

@certik

Steps:

  • Let's create a set of representative tests that fully compile with gfortran + openmp
  • Parse them to AST (probably we need to add new AST nodes for the openmp features) Initial OpenMP Pragma support #3864
  • In ASR we should use DoConcurrent (our parallel loop in ASR) and possibly extend it with new fields as needed
  • We need to add pass similar to the current Symbolics pass that translates DoConcurrent into specific OpenMP API calls feat: complete openmp ASR to ASR pass #4185

Let's do a depth-first approach, the simplest example we can take is probably https://github.com/certik/hfsolver/blob/b4c50c1979fb7e468b1852b144ba756f5a51788d/src/sparse.f90#L200, let's write a standalone test for it, and try to compile it. We can even simplify it further if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureIssue or pull request for adding a new featureopenmpIssue or pull request specific to openmp

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions