Open lamikr opened 2 months ago
Did a first build with default options and got rocmlir-gen build. Libraries are however not installed properly by default and seeing a lot of missing dependencies. LD_LIBRARY_PATH=external/llvm-project/llvm/lib did not solve those but managed to test the code-generation working for gfx1010/1030/35/1100/1103 targets by copying libraries to bin folder.
cd rocm_sdk_builder_612/builddir/031_01_miopen_rocMLIR/bin
bin$ cp ../external/llvm-project/llvm/lib/*.so.17git ../bin
for example following example modified from the mlir/test/rocmlir-driver/sanity.mlir
./rocmlir-gen --arch gfx1103 -mfma=off -atomic_add=off -dot=off -p -t f16 | rocmlir-driver -kernel-pipeline=gpu --verify-passes > 1103.txt
At the moment we are only building the mlir fatlib that is enabled when building with option BUILD_FAT_LIBROCKCOMPILER=ON option. This is needed by amdmigraphx. But for testing and using the MLIR, we need to build also the mlir-gen and other tools and libraries that does not get build when BUILD_FAT_LIBROCKCOMPILER=ON option is used.
So we need to have 2 rocMLIR binfo build files.