Giter Site home page Giter Site logo

parallelism-detection's Introduction

Parallelism-detection

OpenSource Code for Multi-graph Learning for Parallelism Discovery in Sequential Programs

This project is the implementation of our work on the parallelism discovery with multi-graph learning. Our framework leverages ASTNN-based graph neural network model and DGCNN-based graph neural network model. About the original implementation of ASTNN and DGCNN, you can find the code here:

Requirement

Python3
pytorch pycparser Tensorflow
Pluto==0.11.4(http://pluto-compiler.sourceforge.net/)
Rose (http://rosecompiler.org/)
Clang/LLVM

Generating dataset

We provide a dataset generator. This step assumes that you want generating your own dataset. You may add your source code manually to utils/data/source_code , then run:
python3 data_gen.py

Note that you need replace the polycc and autoPar with your own.

Prediction with neural network model

Train and test:
python3 model_train.py

Please cite as

@article{SHEN2021515,
author = {Yuanyuan Shen and Manman Peng and Shiling Wang and Qiang Wu},
title = {Towards parallelism detection of sequential programs with graph neural network},
journal = {Future Generation Computer Systems},
volume = {125},
pages = {515-525},
year = {2021},
issn = {0167-739X},
doi = {https://doi.org/10.1016/j.future.2021.07.001},
url = {https://www.sciencedirect.com/science/article/pii/S0167739X21002557}
}
@article{SHEN,
author = {Yuanyuan Shen and Manman Peng and Qiang Wu and Guoqi Xie},
title = {Multigraph Learning for Parallelism Discovery in Sequential Programs}
},
journal = {Concurrency and Computation: Practice and Experience},
year = {2023},
doi = {https://doi.org/10.1002/cpe.7648},
url = {https://onlinelibrary.wiley.com/doi/abs/10.1002/cpe.7648}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.