• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Digital Signal Processors (DSP) » OMAP™ Processors » OMAP-L13x, AM1x and C674x Processors Forum » Is C6accel really fast?
Share
OMAP™ Processors
  • Forums
  • Announcements
Options
  • Subscribe via RSS
Resources
  • OMAP-L1x DSP+ARM9™-based Processors Product Folder
  • OMAP3525/30 DSP+ARM Cortex™-A8-based SOCs Product Folder

  • Top OMAPL Wiki Links
  • OMAPL3x Schematic Review Checklist
  • OMAPL13x Boot resources

  • OMAPL Document Resources
  • OMAPL137 Technical reference manual
  • OMAPL138 Technical reference manual
  • OMAPL Boot loader App Notes
  • Forums

    Is C6accel really fast?

    This question is answered
    Myosotis
    Posted by Myosotis
    on Apr 24 2012 07:19 AM
    Intellectual510 points

    I try to use MATH (float) functions from c6accel_1_01_00_07 lib in my board OMAP-L138 Experimenter Kit

    The problem is that they work very very very slowly. In comparison with with standard +, -, *, /.

    Let me to show you a simple example. I have this code

    float Two = 2.0; 
    float a,b,c;
    clock_gettime(clockID, &startTime);
    for (i=0; i<1000; i++) {
       a = i;
       C6accel_MATH_powsp(hC6accel,&a,&Two, &b, 1);
       C6accel_MATH_divsp_i(hC6accel,&a, &b, &c, 1);
       C6accel_MATH_mpysp_i(hC6accel,&a, &c,  &b, 1); 
       C6accel_MATH_subsp_i(hC6accel,&b, &a,  &c, 1); 
       C6accel_MATH_addsp_i(hC6accel,&a, &c,  &b, 1); 
    }
    clock_gettime(clockID, &endTime); 
    printf("\nTime of execution (c6accel math): %d sec.\n", endTime.tv_sec - startTime.tv_sec);
    
    //This code has similar functionality as an above code has  
    clock_gettime(clockID, &startTime);  
    for (i=0; i<1000; i++) {
       a = i;
       b=pow(a,Two);
       c=a/b; 
       b=a*c; 
       c=b-a;  
       b=a+c; 	
    }
    clock_gettime(clockID, &endTime); 
    printf("\nTime of execution (standard): %d sec.\n", endTime.tv_sec - startTime.tv_sec);

    Results very upset me. Here they are: 

    Time of execution (c6accel math): 7 sec.

    Time of execution (standard): 0 sec.

    Educate me please, if I should to do some magic manipulations before using c6accel functions? 

    P.S. compilation's options: -march=armv5t -mtune=arm9tdmi -mabi=aapcs-linux -O -DPLATFORM=138 

    Thank you.
    DVSDK OMAP-L138 DSP arm C6Accel floating-point
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Myosotis
      Posted by Myosotis
      on Apr 26 2012 03:30 AM
      Intellectual510 points

      May be it calls of DSP are time-consuming? May be I need to use shared memory with DSP (Memory_CONTIGHEAP, Memory_CACHED)? 

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Rahul Prabhu
      Posted by Rahul Prabhu
      on Apr 30 2012 18:27 PM
      Verified Answer
      Verified by Myosotis
      Genius15475 points

      Myosotis,

      Offloading a task from ARM to the DSP is useful only when large chunk of data need to be processed. In your case you are offfloading just 1 word of data to the DSP, in this case the  interprocessor offsets the performance benefits of offloading the task to the DSP. This has been explained in detail with the help of graphs in the following section in the C6Accel documentation. Refer to that article to make appropriate evaluation of  tasks that are suitable to be offloaded to the DSP.

      http://processors.wiki.ti.com/index.php/C6EZAccel_FAQ#What_is_the_inter-processor_overhead_involved_in_C6Accel_.3F

      Let us know if you have any further questions.

      Regards,

      Rahul

      PS: You observation regarding use of shared memory is correct, all buffers passed from ARM to DSP need to come from CMEM and should be configured a contiguous and cached.

      ---------------------------------------------------------------------------------
      Please click the
      Verify Answer button on this post if it answers your question.
      ---------------------------------------------------------------------------------

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    TI E2E™ Community
    • Support Forums
    • Blogs
    • Videos
    • Groups
    • Site Support & Feedback
    • Settings
    TI E2E™ Community Groups
    • TI University Program
    • Make the Switch
    • Microcontroller Projects
    • Motor Drive & Control
    Other Communities
    • Deyisupport
    • Designsomething.org
    • beagleboard.org
    • TI on Element 14
    • TI on TechXchangeSM
    Other Technical & Support Resources
    • WEBENCH® Design Center
    • Product Information Centers
    • Technical Documents
    • TI Design Network
    • TI Technical Articles
    • TI Training

    All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

    Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

    Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
    TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

    TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
    embedded processors, along with software, tools and the industry’s largest sales/support staff.

    © Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
    Trademarks | Privacy Policy | Terms of Use