Forum Discussion

User1573261788318367's avatar
User1573261788318367
Icon for New Contributor rankNew Contributor
6 years ago

Disable quartus_sh message output buffering

Hi,

I've configured a Quartus Prime Pro 19.1 project using the GUI, and now I want to build it using the command line. Here is the command I've been using:

quartus_sh --flow compile my_project 2>&1 | tee quartus.log

The command line above compiles all of the project flows, and dumps both stdout and stderr to quartus.log. However, when I watch the command outputs during that command, the text seems to "hang" due to stdout/stderr buffering. Is there a way to disable the buffering, or reduce the buffer limit? Or just dump the flow outputs to a log file?

8 Replies

  • sstrell's avatar
    sstrell
    Icon for Super Contributor rankSuper Contributor

    The compilation report automatically generated by Quartus should contain all the output of the compilation (output_files folder usually). Is there a reason why you want to output to a separate log file?

    #iwork4intel

  • Hi sstrell,

    My organization uses Jenkins for regression testing and our default Jenkins configuration checks the output log every 15 minutes or so, and if there is no activity (i.e. no stdout/stderr) then it marks the job as a timeout failure. It's easy to disable this config feature but generally I would prefer to not have special exceptions for our FPGA regression.

    I am well aware that the logs contain all of the information, and where the logs are located.

  • KhaiChein_Y_Intel's avatar
    KhaiChein_Y_Intel
    Icon for Regular Contributor rankRegular Contributor

    Hi,

    I tried to run the same command and I can see that the quartus.log is written with the flow information using Pro edition software v19.1.

    Have you tried the same command using other project file?

    Thanks.

    Best regards,

    KhaiY

  • The problem isn't with the log or the project file. The problem is that when Quartus writes to stdout and stderr, it does so in a buffered fashion. I want the buffer to be flushed more often. We have seen similar problems with other tools before (notably Cadence Xcelium) and sometimes there is a flag to enable unbuffered writes to stdout/stderr.

    It's not really a huge issue, just annoying from a regression flow perspective.

  • KhaiChein_Y_Intel's avatar
    KhaiChein_Y_Intel
    Icon for Regular Contributor rankRegular Contributor

    Hi Ted,

    I recevied the reply from our developer today. I have sent an email to you. Please let me know if you do not receive.

    Thanks.

    Best regards,

    KhaiY

    • ArcticRain's avatar
      ArcticRain
      Icon for New Contributor rankNew Contributor

      Can the proposed solution be offered to the community? I run into similar issues when compiling from the command line.