Results 1 to 3 of 3

Thread: Measuring, and discrepancy of sequential and parallel times

  1. #1

    Measuring, and discrepancy of sequential and parallel times

    Hi,

    When i collect my time in my application, the parallel time with 2 Threads run in CPU is 0.89 seconds, but the sequential time is 7.813 seconds.
    Both codes are exactly the same, with the same data structure.

    I already debug for have sure that the execution is really going in the correct way, and all run well.

    For collect the time i put both, the call of the Kernel and the call of function in sequential code, in a for with 10000 interactions.

    And for to measure only a execution, without compilation time, i put the function bellow, before and after for.
    clock_t tempo_execucao_real_inicial = clock();



    Do have OpenCL some treatment that optimize memory access or a generating code optimized that generate results with this discrepancy?

    Very Thanks,

  2. #2

    Re: Measuring, and discrepancy of sequential and parallel ti

    Somebody know about that? Or who or where can i find about that?
    I really need the answer about that, all my research and time that i spent in my research depends of undestand what's happening.

    Very Thanks,

  3. #3

    Re: Measuring, and discrepancy of sequential and parallel ti

    Based upon what you have provided I am unable to answer your post. Please post a link to sample code that shows your application. If you application is private then include a simplified sample. Please include both host and kernel source with your timing points. Please briefly describe your hardware and software environment including operating system, OpenCL vendor implementation, hardware card, etc.

Similar Threads

  1. Scheduling a work load that relies on sequential values
    By Rocko Bonaparte in forum OpenCL
    Replies: 2
    Last Post: 01-07-2013, 08:49 AM
  2. Replies: 2
    Last Post: 04-29-2010, 04:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •