Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mlir-gen #127

Open
lamikr opened this issue Aug 5, 2024 · 1 comment
Open

Add mlir-gen #127

lamikr opened this issue Aug 5, 2024 · 1 comment

Comments

@lamikr
Copy link
Owner

lamikr commented Aug 5, 2024

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.

@lamikr
Copy link
Owner Author

lamikr commented Aug 5, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant