akmaru / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
0 stars 0 forks source link

Build MLIR #1

Closed akmaru closed 1 year ago

akmaru commented 1 year ago

https://mlir.llvm.org/getting_startedUnix-like compile/testing: 通りにbuildすれば良い。

cd llvm-project
mkdir build
cd build
cmake -G Ninja ../llvm \
   -DLLVM_ENABLE_PROJECTS=mlir \
   -DLLVM_BUILD_EXAMPLES=ON \
   -DLLVM_TARGETS_TO_BUILD="Native;NVPTX;AMDGPU" \
   -DCMAKE_BUILD_TYPE=Release \
   -DLLVM_ENABLE_ASSERTIONS=ON
cmake --build . --target check-mlir
akmaru commented 1 year ago

lllvmorg-16.0.6check-mlir をビルドした時のテスト結果は下記。

Testing Time: 31.72s
  Unsupported:  288
  Passed     : 1592