You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OpenMP is required in matmul-benchmark, make sure `libomp` and `libomp-dev` (on Ubuntu and Debian) / `libomp-devel` (on Redhat and SUSE) have been installed.
238
+
### matmul-benchmark
239
+
`OpenMP` and `lld` LTO is required in matmul-benchmark. To ensure version compatibility with the project, it's recommended to use the LLVM toolchains built within the `buddy-benchmark`. Follow the steps below:
240
+
- build llvm toolchains with `lld` and `OpenMP`.
241
+
```
242
+
$ cd buddy-mlir/llvm/build
243
+
$ cmake -G Ninja ../llvm \
244
+
-DLLVM_ENABLE_PROJECTS="mlir;clang;lld;openmp" \
245
+
-DLLVM_TARGETS_TO_BUILD="host;RISCV" \
246
+
-DLLVM_ENABLE_ASSERTIONS=ON \
247
+
-DLLVM_ENABLE_RUNTIMES=all \
248
+
-DOPENMP_ENABLE_LIBOMPTARGET=OFF \
249
+
-DCMAKE_BUILD_TYPE=RELEASE
250
+
```
251
+
- use the `clang++` in `buddy-mlir/llvm/build/bin`.
0 commit comments