This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

question about -j option



hello,

I am an engineer for working Samsung Electornics.

I have a question about compile option.

 

As you know, we can use -j option for gmake distrubuted build to get fast compile time.

Is there any problem at compiler if I use - j option when I build c6608 DSP?

 

BRs, kwanghun

  • Hi,

    I assume you build the program for the DSP on a PC. Since the -j option tells gmake to build parallel on the number of cores you specify on the machine your building that option doesn't affect the target you're building for. It's a question how many cores the CPU of your PC actually supports.

    An example make command for use on an eight CPU machine would be gmake -j 8

    Kind regards,

    one and zero

  • Hi,

    Welcome to the TI E2E forum. I hope you will find many good answers here and in the TI.com documents and in the TI Wiki Pages (for processor issues). Be sure to search those for helpful information and to browse for the questions others may have asked on similar topics (e2e.ti.com).

    Moved this post to correct forum for faster response(TI Compiler Forum).

    Thank you.

  • There should be no problem with respect to the compiler when using gmake -j, but you need to make sure your Makefile is correctly written to allow parallel builds.  This just means that all of the dependences must be correct for all of the make rules.  If that is correct, you should have no trouble with the compiler.

  • Dear TI,

     

    I heard your specific CCS tools -CCSv5.0.3- do not support parallel build officially. 

    Is this true?

     

    BRs, kwanghun

  • CCS 5.0.3 is pretty old.  If you are able, you should really upgrade.  As described here, CCS 5.3 and higher supports parallel builds.  If, for some reason, you cannot upgrade, then see this quick tip video for how to do parallel builds on older versions of CCS.

    Thanks and regards,

    -George

  • Dear George,

     

    Thank you for your kindly answer.

    I have one more question.

    Is gmake version different between CCS 5.0.3 and CCS 5.3?

    If gmake version is same, compiler for CCS 5.0.3 does not support parallel build?

    I want to know why TI said that minGW is possible to parallel build but gmake is not.

     

    BRs, kwanghun

     

  • Kwanghun,

    Kwanghun Kim said:
    Is gmake version different between CCS 5.0.3 and CCS 5.3?

    No. They are both gmake 3.81

    Kwanghun Kim said:
    If gmake version is same, compiler for CCS 5.0.3 does not support parallel build?

    parallel build support is dependent on the gmake version. Since gmake 3.81 supports parallel builds, it is possible to enable it with 5.0.3. But since actual CCS GUI support for parallel builds was only added starting in CCSv5.3, you would have to manually edit the gmake command-line field with the -j option in versions before 5.3. For versions 5.3 and greater, you can simply use the option in the behavior tab in the link George provided.

    Note that there is a known issue with parallel builds if the project uses pre and post build steps. It could cause failure for those steps. I think it was fixed in CCSv5.4 or 5.5. Hence it is strongly encouraged to move to at least CCSv5.5 if you which to use parallel builds and pre/post build steps.

    Kwanghun Kim said:
    I want to know why TI said that minGW is possible to parallel build but gmake is not.

    older gmake versions like the one in CCSv4 (3.79) does not support parallel builds. Any references to using minGW to get parallel build support most likely apply to CCSv4.

    Thanks

    ki

  • Dear Ki,

     

    Thank you for kindly answer.

     

    BRs, kwanghun