UCLA-VAST / tapa

TAPA is a dataflow HLS framework that features fast compilation, expressive programming model and generates high-frequency FPGA accelerators.
https://tapa.rtfd.io
MIT License
144 stars 27 forks source link

FATAL:module fglrx not found #122

Open Xiaobo-Lu-AHU opened 1 year ago

Xiaobo-Lu-AHU commented 1 year ago

Envrionment: Ubuntu20.04, Vitis 2020.2, platform=xilinx_zcu102_base_202020_1

Hello, I'm new to HLS deisgn and attracted by this repository. I've written a lightweight project and successfully synthesized and generated bitstream. While running Hardware simulation, I got this confusion:

ERROR: [ConfigUtil 60-1258] No valid platform was found that matches 'xilinx.com_xd_xilinx_zcu102_base_202020_1_202020_1'. Please make sure that the platform is specified correctly, and the platform has the right version number. The platform repo paths are: /tools/Xilinx/Vitis/2020.2/platforms /opt/xilinx/platforms The valid platforms found from the above repo paths are: /opt/xilinx/platforms/xilinx_zcu102_base_202020_1/xilinx_zcu102_base_202020_1.xpfm

I don't know why the name of platform has been changed from xilinx_zcu102_base_202020_1 to xilinx.com_xd_xilinx_zcu102_base_202020_1_202020_1;

and the execution on FPGA with the bitstream also return the following error:

I1115 08:46:04.865003 2185 xilinx_opencl_device.cpp:298] Running on-board execution with Xilinx OpenCL modprobe: FATAL: Module fglrx not found in directory /lib/modules/5.15.0-52-generic Error! Fail to load fglrx kernel module! Maybe you can switch to root user to load kernel module directly I1115 08:46:05.084538 2185 opencl_device.cpp:160] Found platform: AMD Accelerated Parallel Processing F1115 08:46:05.084576 2185 opencl_device.cpp:200] Target platform 'Xilinx' not found

I don't understand if the execution still needs other necessary requirements. By the way, I have tried vadd project in the example repository, and Sextans, a SpMM kernel published in FPGA'22, and always got the same error in the last step. I sincerely hope you can generously provide some guidance for such a beginner.

Blaok commented 1 year ago

TAPA is under-tested for MPSoC platforms. Is OpenCL available on this platform? If so, could you point me to an example?