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

The installation script is stuck. #140

Closed lifeformg closed 9 months ago

lifeformg commented 9 months ago

I am trying to install Tapa on an Ubuntu 20 server according to the documentation, but the process gets stuck when executing the "bash install.sh" script.

Setting up xrt (2.14.354) ...
Unloading old XRT Linux kernel modules
Unregistering old XRT Linux kernel module sources 2.14.354 from dkms

-------- Uninstall Beginning --------
Module:  xrt
Version: 2.14.354
Kernel:  5.4.0 (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

xocl.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.4.0/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

xclmgmt.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.4.0/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod...

DKMS: uninstall completed.

-------- Uninstall Beginning --------
Module:  xrt
Version: 2.14.354
Kernel:  5.4.195 (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

xocl.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.4.195/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

xclmgmt.ko:
 - Uninstallation
   - Deleting from: /lib/modules/5.4.195/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod...

DKMS: uninstall completed.

------------------------------
Deleting module version: 2.14.354
completely from the DKMS tree.
------------------------------
Done.
Invoking DKMS common.postinst for xrt
Loading new xrt-2.14.354 DKMS files...
Building for 5.4.0 5.4.195
Building initial module for 5.4.0
Secure Boot not enabled on this system.
Done.

xocl.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.0/updates/dkms/

xclmgmt.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.0/updates/dkms/

depmod...

DKMS: install completed.
Building initial module for 5.4.195
Secure Boot not enabled on this system.
Done.

xocl.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.195/updates/dkms/

xclmgmt.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.195/updates/dkms/

depmod...

DKMS: install completed.
Finished DKMS common.postinst
Loading new XRT Linux kernel modules

Can someone provide some help?

Blaok commented 9 months ago

@lifeformg Can you check if you can run sudo apt-get install -y xrt --no-install-recommends successfully? The log you show is from this command.

lifeformg commented 9 months ago

@lifeformg Can you check if you can run sudo apt-get install -y xrt --no-install-recommends successfully? The log you show is from this command.

Yes, I also discovered later that it was due to a stuck installation process of XRT. Running sudo apt-get install -y xrt --no-install-recommends also gets stuck at Loading new XRT Linux kernel modules. It seems that this is not a problem with TAPA (so I will close this issue later). But do you have any leads on the issue with XRT installation?

Blaok commented 9 months ago

But do you have any leads on the issue with XRT installation?

No idea. I've never seen similar issues before 😅