hls4ml tutorials

237 views
Skip to first unread message

Charles-Etienne Granger

unread,
Mar 16, 2021, 12:31:00 PM3/16/21
to hls4m...@gmail.com

Greetings !

Our research group is looking for using hls4ml long term and we have a question regarding the tutorials at https://github.com/fastmachinelearning/hls4ml-tutorial

 

Is there a way to use vitis_hls with vivado 2020 with those tutorials? As the tutorials seem to use vivado_hls that comes with vivado 2019.

 

Thank you for your time and have a nice day!

 

 

Charles-Etienne Granger

 

 

Nhan V Tran

unread,
Mar 17, 2021, 2:42:48 PM3/17/21
to Charles-Eti...@usherbrooke.ca, hls4m...@gmail.com, hls4m...@googlegroups.com
Hello Charles

Thank you for your interest.  At the moment, we are supporting Vivado and in the processing of migrating support to Vitis, though in early stages.  Please let us know if you have any other questions or comments.

Best
Nhan

-- 
You received this message because you are subscribed to the Google Groups "hls4ml help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hls4mlhelp+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hls4mlhelp/YTOPR0101MB1401BFA876C4074F12B27B84C26B9%40YTOPR0101MB1401.CANPRD01.PROD.OUTLOOK.COM.

Charles-Etienne Granger

unread,
Mar 23, 2021, 3:15:58 PM3/23/21
to Nhan V Tran, hls4m...@gmail.com, hls4m...@googlegroups.com

Hello Nhan,

It’s nice to know that Vitis will be supported !

We have a problem with the tutorial container. Once at the Synthesis step, it says that the vivado HLS installation is not found.

 

Here’s what I did :

I’ve setup a vm with vivado_hls 2019.2 installed on /opt/Xilinx/Vivado/2019.2/bin/

I’ve sourced the settings64.sh script to make sur that vivado_hls was in the PATH variable.

I’ve tried to simply type “vivado_hls” in the terminal and the app starts.

 

Is there anything else that I need to setup for the tutorial to be functional ?

 

Cheers,

 

Charles-Etienne Granger

 

De : Nhan V Tran <nt...@fnal.gov>
Envoyé : March 17, 2021 2:43 PM
À : Charles-Etienne Granger <Charles-Eti...@USherbrooke.ca>
Cc : hls4m...@gmail.com; hls4m...@googlegroups.com
Objet : Re: [hls4ml.help] hls4ml tutorials

sioni summers

unread,
Mar 24, 2021, 6:15:47 AM3/24/21
to hls4m...@googlegroups.com, Charles-Eti...@usherbrooke.ca
Hi,

I didn't follow completely: did you create the Docker container from the instructions on the github? (https://github.com/fastmachinelearning/hls4ml-tutorial#docker). Or are you trying to run directly on the VM you created?

The Docker image specified in the dockerfile there doesn't install Vivado into the image, since it was a bit tricky to make that portable. Your options are:
1) mount the directory where Vivado is installed on your VM onto the Docker container (add '-v /opt/Xilinx:/opt/Xilinx' to the 'docker run' command)
2) install conda, the tutorial conda environment, and run the notebooks directly on your VM (skip Docker)
3) install Vivado into the docker image. It's a bit awkward, but I can provide an example of how to do it if you'd like

I hope that helps, but let me know if you need more details.

Thanks,
Sioni

sioni summers

unread,
Mar 24, 2021, 7:16:25 AM3/24/21
to hls4m...@googlegroups.com, Charles-Eti...@usherbrooke.ca
Sorry for the extra noise... 

A 4th option is that you should be able to pull the built image which does contain Vivado:

It's a 20GB or so download, but it should contain everything you need.

Thanks,
Sioni

Charles-Etienne Granger

unread,
Mar 29, 2021, 10:10:34 AM3/29/21
to sioni summers, hls4m...@googlegroups.com

Hi Sioni,

 

Thank you for the help on this matter and sorry for taking so long to answer as the emails went directly into my spam folder.

I’ll be trying out the fixes you proposed this week and I’ll let you know what worked (or didn’t if I still have troubles
😉).

Thanks again and have an excellent day.

Charles-Etienne Granger

 

De : sioni summers <sions...@googlemail.com>
Envoyé : March 24, 2021 7:16 AM
À : hls4m...@googlegroups.com; Charles-Etienne Granger <Charles-Eti...@USherbrooke.ca>

Charles-Etienne Granger

unread,
Apr 6, 2021, 1:12:01 PM4/6/21
to sioni summers, hls4m...@googlegroups.com

Hi again!

I just wanted to share that both dockers method worked for me!


I haven’t tried to just run the notebooks.

Thank you very much for your answer and have a great day.

 

Best regards,

 

Charles-Etienne Granger

Reply all
Reply to author
Forward
0 new messages