polygeist-script
Science Score: 64.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
✓Academic publication links
Links to: zenodo.org -
✓Committers with academic emails
1 of 12 committers (8.3%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (9.4%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: wsmoses
- License: apache-2.0
- Language: MLIR
- Default Branch: main
- Size: 2.19 MB
Statistics
- Stars: 9
- Watchers: 4
- Forks: 2
- Open Issues: 1
- Releases: 2
Metadata Files
README.md
Polygeist-Script
Use Docker
We provide a docker file that creates the environment automatically.
```bash
Build the image by yourself
docker build -t polygeist .
Turn off hyperthreading outside Docker
sudo bash hyper.sh
Run the script
docker run --privileged polygeist /bin/bash -c "cd Polygeist-Script/polybench-c-4.2.1-beta && ./run.sh" ```
You can also pull a pre-built Docker image -
```bash docker pull kumasento/polygeist
Turn off hyperthreading outside Docker
sudo bash hyper.sh
Run the script
docker run --privileged kumasento/polygeist /bin/bash -c "cd Polygeist-Script/polybench-c-4.2.1-beta && ./run.sh" ```
Run manually
Pluto Deps:
$ sudo apt-get install pkg-config git libtool autoconf flex bison libgmp3-dev texinfo llvm-dev libclang-dev texlive-full
Install Pluto:
``` $ git clone git://repo.or.cz/pluto.git
$ cd pluto/
$ git reset --hard dae26e77b94b2624a540c08ec7128f20cd7b7985
$ git submodule init
$ git submodule update
$ ./autogen.sh
$ ./configure ```
Pull mlir-clang
$ git clone -b main-042621 --single-branch https://github.com/wsmoses/Polygeist mlir-clang
Build mlir-clang:
``` $ cd mlir-clang $ mkdir llvm-project/build $ cd llvm-project/build $ cmake -G Ninja ../llvm \ -DLLVMENABLEPROJECTS="mlir;polly;clang;openmp" \ -DLLVMBUILDEXAMPLES=ON \ -DLLVMTARGETSTOBUILD="X86;NVPTX;AMDGPU" \ -DCMAKEBUILDTYPE=Release \ -DLLVMENABLE_ASSERTIONS=ON \
Copy the omp.h file from this repo to the build directory of mlir-clang
```
Pull polymer
$ git clone --recursive https://github.com/kumasento/polymer -b pact
Build polymer
```sh
At the top-level directory within polymer
$ mkdir llvm/build $ cd llvm/build $ cmake ../llvm \ -DLLVMENABLEPROJECTS="llvm;clang;mlir" \ -DLLVMTARGETSTOBUILD="host" \ -DLLVMENABLEASSERTIONS=ON \ -DCMAKEBUILDTYPE=DEBUG \ -DLLVMINSTALLUTILS=ON \ -DCMAKECCOMPILER=clang \ -DCMAKECXX_COMPILER=clang++ \ -G Ninja ninja -j$(nproc) ninja check-mlir
At the top-level directory within polymer
mkdir build cd build cmake .. \ -DCMAKEBUILDTYPE=DEBUG \ -DMLIRDIR=$PWD/../llvm/build/lib/cmake/mlir \ -DLLVMDIR=$PWD/../llvm/build/lib/cmake/llvm \ -DLLVMENABLEASSERTIONS=ON \ -DCMAKECCOMPILER=clang \ -DCMAKECXXCOMPILER=clang++ \ -DLLVMEXTERNALLIT=${PWD}/../llvm/build/bin/llvm-lit \ -G Ninja ninja -j$(nproc) ```
Run scripts
``` $ git clone https://github.com/wsmoses/Polygeist-Script.git scripts $ cd scripts $ cd polybench-c-4.2.1-beta $ hyper.sh
change path on script run.sh based on your installation
$ run.sh ```
Owner
- Name: William Moses
- Login: wsmoses
- Kind: user
- Location: Cambridge, MA
- Company: MIT
- Website: wsmoses.com
- Twitter: wsmoses
- Repositories: 124
- Profile: https://github.com/wsmoses
Citation (CITATION.cff)
cff-version: 1.2.0
message: "If you use this software, please cite it using the following metadata."
title: "Polygeist: Raising C to Polyhedral MLIR"
authors:
- family-names: Moses
given-names: "William S."
affiliation: MIT
orcid: https://orcid.org/0000-0003-2627-0642
- family-names: Chelini
given-names: Lorenzo
affiliation: "TU Eindhoven"
- family-names: Zhao
given-names: Ruizhe
affiliation: "Imperial College London"
- family-names: Zinenko
given-names: Oleksandr
affiliation: Google
version: v0.1.1
url: "https://github.com/wsmoses/Polygeist-Script"
GitHub Events
Total
- Watch event: 2
- Fork event: 1
Last Year
- Watch event: 2
- Fork event: 1
Committers
Last synced: over 1 year ago
Top Committers
| Name | Commits | |
|---|---|---|
| lorenzo chelini | l****i@t****l | 21 |
| Ubuntu | u****u@i****l | 8 |
| William Moses | gh@w****m | 7 |
| Ubuntu | u****u@i****l | 4 |
| Ruizhe Zhao | k****o | 4 |
| Lorenzo Chelini | l****i@i****m | 3 |
| Ubuntu | u****u@i****l | 2 |
| Vincent Zhao | v****z@g****m | 2 |
| Alex Zinenko | z****o@g****m | 1 |
| Jurriaan H. Spaaks | j****s@e****l | 1 |
| Ubuntu | u****u@i****l | 1 |
| Ubuntu | u****u@i****l | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: about 1 year ago
All Time
- Total issues: 1
- Total pull requests: 4
- Average time to close issues: 20 minutes
- Average time to close pull requests: about 3 hours
- Total issue authors: 1
- Total pull request authors: 4
- Average comments per issue: 2.0
- Average comments per pull request: 0.0
- Merged pull requests: 3
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- SerenaC94 (1)
Pull Request Authors
- kumasento (1)
- wsmoses (1)
- chelini (1)
- jspaaks (1)