tensorflow / mlir

"Multi-Level Intermediate Representation" Compiler Infrastructure
1.74k stars 260 forks source link

Add OpenMP dialect with barrier operation #275

Closed DavidTruby closed 4 years ago

DavidTruby commented 5 years ago

This establishes an OpenMP dialect with an initial simple operation, barrier.

omp.barrier takes no arguments and returns nothing, but implies a side effect (synchronization of all OpenMP threads)

NOTE: depends on #244

googlebot commented 5 years ago

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

:memo: Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

DavidTruby commented 5 years ago

Arm has signed the CLA

joker-eph commented 4 years ago

Hey @DavidTruby,

Thanks for the contribution! It is exciting to see an OpenMP dialect getting started :) Was there a high-level description of the dialect sent to mlir@tensorflow.org already? I think it'd be great to make sure everyone is aligned first. I actually sent a PR (haven't merged yet) to describe a bit the process: https://github.com/tensorflow/mlir/pull/263/files

DavidTruby commented 4 years ago

Hi @joker-eph, the summary went out to the list today, I just posted this early to get an idea if I was heading in the right direction with it!

DavidTruby commented 4 years ago

Reopened on Phabricator