2019-12-24 05:33:08 +08:00
|
|
|
version: 2
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
docker:
|
2019-12-24 06:03:22 +08:00
|
|
|
- image: circleci/python
|
2019-12-24 05:33:08 +08:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- checkout
|
2019-12-24 06:00:55 +08:00
|
|
|
|
|
|
|
- run:
|
2019-12-24 06:47:37 +08:00
|
|
|
name: Installing SUDO
|
|
|
|
command: 'apt-get update && apt-get install -y sudo && rm -rf /var/lib/apt/lists/*'
|
|
|
|
- run:
|
|
|
|
name: Installing GCC
|
|
|
|
command: 'apt-get update && apt-get install -y gcc g++'
|
|
|
|
- run:
|
|
|
|
name: Install CMAKE
|
|
|
|
command: 'apt-get update && sudo apt-get install -y cmake'
|
|
|
|
|
|
|
|
- run:
|
|
|
|
command: gcc --version
|
2019-12-24 05:33:08 +08:00
|
|
|
|
|
|
|
- run:
|
2019-12-24 05:53:08 +08:00
|
|
|
name: Set up MLIR.
|
|
|
|
command: |
|
|
|
|
git clone https://github.com/llvm/llvm-project.git
|
|
|
|
git clone https://github.com/tensorflow/mlir llvm-project/llvm/projects/mlir
|
|
|
|
mkdir llvm-project/build
|
|
|
|
cd llvm-project/build
|
|
|
|
cmake -G Ninja ../llvm -DLLVM_ENABLE_RTTI=ON -DLLVM_BUILD_EXAMPLES=OFF -DLLVM_TARGETS_TO_BUILD="host"
|
|
|
|
cmake --build . --target check-mlir
|
2019-12-24 05:33:08 +08:00
|
|
|
|
|
|
|
- run:
|
|
|
|
name: Print the Current Time
|
|
|
|
command: date
|