-
Notifications
You must be signed in to change notification settings - Fork 22
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
static_assert in header files #2
Comments
Hi @oka2 , Could you try to include "-std=c++0x" flag for HLS synthesis, as "static_assert" is a relatively new feature in the C++ standard? This work for me on Vivado_HLS v2015.4. Unfortunately, I don't have the access to v2016.4. By the way, I use the following script to setup the Vivado_HLS projects. Thanks, |
Im on a PC, is there a script for windows? The script returns errors because it is targeting linux. |
By the way it seems like the flags worked, but here is the error:
|
Hey, @oka2—if you use triple-backticks ``` to enclose your code instead of single backticks, then line breaks will be preserved, which will make this kind of output more legible. |
@oka2 , The TCL script and the makefile in the example folders are all for Linux. You don't have to use them. I just want to point it out as a reference, since it includes all the necessary settings (C flags, link options, include folders, etc.). You can still use your original develop environment (e.g. GUI) with these settings configured. For the error you showed latter, I guess it has something to do with your Vivado installation and environment. It seem to fail when you tried to start 'vivado_hls'. |
Ok I believe I am getting closer to compilation. I have made my own script following yours which can open the project, include all of the necessary files, and configure the solution. I still have issues with linking libraries in the csim_design call. No matter what I do, vivado won't recognize pipeline_native.o files as library flags. I have tried multiple syntaxes and multiple locations for the file. It seems Vivado looks for them in its msys folder because my lpng12 and lpthread work fine. The error is below. So I have two questions. How do I add object files as libraries? And what library is ldl in line 3 of the script you attached above?
|
The log seems to suggest that
|
I have the file for sure and all the other libraries work except pipeline_native. I even copied pipeline_native.o and its header file to the same places as the other libraries and their headers but it still did not work. Below is my script with some adjustments for Windows syntax. The problem comes from the csim_design line. I have a feeling its the syntax of adding the file but I have tried
|
I recall this problem. The file included in |
I put an absolute path (straight from my C drive and all) and now it says file format not recognized! Now I am thinking it has to do with 32 vs 64 bit linkers and .o files.
|
Can you run |
Hello jingpu! I wanted to sincerely thank you for all of your help. I have set up my own ubuntu virtual machine as it seemed that working with Windows was not getting anywhere. As of yesterday I successfully built Halide_HLS and synthesized a sample project in Vivado. The process for linux was streamlined and easy thanks to your work and documentation. Best of luck on future projects! |
It is great to hear that! Thanks! |
It seems vivado hls (v2016.4) does not recognize static_assert in header files Stencil.h and LineBuffer.h. It will give the following warning:
and the errors:
Is this due to my version of Vivado_HLS or halide_hls? Help would be much appreciated! Thanks.
The text was updated successfully, but these errors were encountered: