facebookresearch / CompilerGym

Reinforcement learning environments for compiler and program optimization tasks
https://compilergym.ai/
MIT License
885 stars 123 forks source link

Adding LoopTune #777

Open dejangrubisic opened 1 year ago

dejangrubisic commented 1 year ago

Adding LoopTune under the example directory.

ChrisCummins commented 1 year ago

Oh cool! Okay, I think adding it as a submodule makes sense. Only thing I'd like to check is that this won't break the make -C examples test invocation as pytest may pick up the sources in your repo and try running them.

I see the CI is broken (not by you). I'll test locally before giving the green light to merge.

Cheers, Chris

codecov-commenter commented 1 year ago

Codecov Report

Merging #777 (683d44a) into development (768e4b7) will decrease coverage by 8.39%. The diff coverage is n/a.

Additional details and impacted files [![Impacted file tree graph](https://codecov.io/gh/facebookresearch/CompilerGym/pull/777/graphs/tree.svg?width=650&height=150&src=pr&token=2C4Q4HC12K&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=facebookresearch)](https://codecov.io/gh/facebookresearch/CompilerGym/pull/777?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=facebookresearch) ```diff @@ Coverage Diff @@ ## development #777 +/- ## =============================================== - Coverage 89.01% 80.61% -8.40% =============================================== Files 131 131 Lines 8065 8065 =============================================== - Hits 7179 6502 -677 - Misses 886 1563 +677 ``` | [Impacted Files](https://codecov.io/gh/facebookresearch/CompilerGym/pull/777?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=facebookresearch) | Coverage Δ | | |---|---|---| | [compiler\_gym/envs/gcc/service/gcc\_service.py](https://codecov.io/gh/facebookresearch/CompilerGym/pull/777/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=facebookresearch#diff-Y29tcGlsZXJfZ3ltL2VudnMvZ2NjL3NlcnZpY2UvZ2NjX3NlcnZpY2UucHk=) | `0.00% <0.00%> (-95.98%)` | :arrow_down: | | [compiler\_gym/envs/gcc/gcc\_rewards.py](https://codecov.io/gh/facebookresearch/CompilerGym/pull/777/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=facebookresearch#diff-Y29tcGlsZXJfZ3ltL2VudnMvZ2NjL2djY19yZXdhcmRzLnB5) | `31.42% <0.00%> (-68.58%)` | :arrow_down: | | [compiler\_gym/envs/gcc/gcc.py](https://codecov.io/gh/facebookresearch/CompilerGym/pull/777/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=facebookresearch#diff-Y29tcGlsZXJfZ3ltL2VudnMvZ2NjL2djYy5weQ==) | `30.50% <0.00%> (-63.00%)` | :arrow_down: | | [compiler\_gym/envs/gcc/datasets/csmith.py](https://codecov.io/gh/facebookresearch/CompilerGym/pull/777/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=facebookresearch#diff-Y29tcGlsZXJfZ3ltL2VudnMvZ2NjL2RhdGFzZXRzL2NzbWl0aC5weQ==) | `48.88% <0.00%> (-43.34%)` | :arrow_down: | | [compiler\_gym/envs/gcc/datasets/chstone.py](https://codecov.io/gh/facebookresearch/CompilerGym/pull/777/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=facebookresearch#diff-Y29tcGlsZXJfZ3ltL2VudnMvZ2NjL2RhdGFzZXRzL2Noc3RvbmUucHk=) | `51.51% <0.00%> (-42.43%)` | :arrow_down: | | [compiler\_gym/envs/gcc/datasets/\_\_init\_\_.py](https://codecov.io/gh/facebookresearch/CompilerGym/pull/777/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=facebookresearch#diff-Y29tcGlsZXJfZ3ltL2VudnMvZ2NjL2RhdGFzZXRzL19faW5pdF9fLnB5) | `70.58% <0.00%> (-29.42%)` | :arrow_down: | | [compiler\_gym/envs/gcc/gcc\_env.py](https://codecov.io/gh/facebookresearch/CompilerGym/pull/777/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=facebookresearch#diff-Y29tcGlsZXJfZ3ltL2VudnMvZ2NjL2djY19lbnYucHk=) | `71.01% <0.00%> (-28.99%)` | :arrow_down: | | [compiler\_gym/envs/gcc/datasets/anghabench.py](https://codecov.io/gh/facebookresearch/CompilerGym/pull/777/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=facebookresearch#diff-Y29tcGlsZXJfZ3ltL2VudnMvZ2NjL2RhdGFzZXRzL2FuZ2hhYmVuY2gucHk=) | `75.00% <0.00%> (-25.00%)` | :arrow_down: | | [compiler\_gym/service/service\_cache.py](https://codecov.io/gh/facebookresearch/CompilerGym/pull/777/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=facebookresearch#diff-Y29tcGlsZXJfZ3ltL3NlcnZpY2Uvc2VydmljZV9jYWNoZS5weQ==) | `84.21% <0.00%> (-7.90%)` | :arrow_down: | | [compiler\_gym/envs/llvm/datasets/cbench.py](https://codecov.io/gh/facebookresearch/CompilerGym/pull/777/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=facebookresearch#diff-Y29tcGlsZXJfZ3ltL2VudnMvbGx2bS9kYXRhc2V0cy9jYmVuY2gucHk=) | `74.11% <0.00%> (-6.74%)` | :arrow_down: | | ... and [11 more](https://codecov.io/gh/facebookresearch/CompilerGym/pull/777/diff?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=facebookresearch) | |
facebook-github-bot commented 1 year ago

Hi @dejangrubisic!

Thank you for your pull request.

We require contributors to sign our Contributor License Agreement, and yours needs attention.

You currently have a record in our system, but the CLA is no longer valid, and will need to be resubmitted.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

ChrisCummins commented 1 year ago

I've filed #778 for the CI signals. Once I've fixed that I'll ping you to rebase this PR on development.

Other than that, I checked out the loop_tune repo locally and all looks good. One thing you may want to consider is pinning your CompilerGym dependency in requirements.txt, though that isn't merge blocking.

Cheers, Chris

facebook-github-bot commented 1 year ago

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!