-
Notifications
You must be signed in to change notification settings - Fork 94
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
How to execute a VCK5000-based mlir-tutorial? #1838
Comments
Update, I tried to modify the makefile-common as:
And I entered to tutorial-1 dir and compiled the elf:
Maybe it works. But when I tried to compile tutorial-1.exe, there was an error:
But there is not a subdirectory named "x86_64" in the runtime_lib. I am confused. |
Thanks for your questions! The |
Thanks for your reply!!!! I executed the "make vck5000" and the "./test.elf" commands following the readme in the vector_vector_add example.
I have sourced the scripts of xrt and vitis 2023.2. And my server has three FPGAs:
So I think maybe it is the default device index in "mlir_aie_init_device" function is incorrect. I modified test_vck5000.cpp in the vector_vector_add example as:
The error is the same. |
Update: I have install the AIR PCIe kernel and driver for VCK5000. And now I execute the vector_vector_add in the root mode, there is no any output and (maybe stuck at mlir-aie-init-device). |
What PDI do you have loaded on the VCK5000? For mlir-aie we use a PDI image that is different than the standard XRT shell. Instructions for how to obtain and load the image is in the platform repo: https://github.com/Xilinx/ROCm-air-platforms/blob/main/platform/vck5000/README.md. If you do have the ROCm-air-platforms PDI loaded on the card, can you let me know what you see in |
Hi, Thanks for your reply. I have programmed vck5000 using the platform in ROCm-air-platforms. The driver amdair.ko has been added and used by this vck5000. (from lspci -vd 10ee:). The dmesg shows as:
|
Ah great! So, one thing I am confused about is passing One thing I would make sure to do in-between failed runs is resetting the device using this script: https://github.com/Xilinx/ROCm-air-platforms/blob/main/platform/vck5000/utils/reset-vck5000.sh. This script reloads the firmware on running on the ARM and the driver to make sure that neither are in a bad state. This script does NOT require a reboot afterwards. |
Hi, Thanks for your detailed reply. I have changed the device_id to 0. But the vector_vector_add and weather_stencil.exe still cannot execute without any output. Just stuck. I also execute the reset-vck5000.sh script to reset this device without reboot. The dmesg shows as:
This is the output of lspci -vd 10ee: command:
Oh, it is worth to mention that: |
Thanks for the detailed response. Think we are getting close. Couple questions:
|
Hi,
I am new of the mlir-aie. And I have installed the mlir-aie according to the document. And I would like to execute the mlir_tutorials on VCK5000.
First, I check the installed "install/runtime_lib" directory. There is only an "x86_64-hsa".
Secondly, I found the makefile-common is used for aarch64 (I guess it is for VCK190). So I would like to know how I should modify the makefile-common for VCK5000.
Thanks.
The text was updated successfully, but these errors were encountered: