[Openmcl-devel] counting cpu cycles?
    Florian Dietz 
    Florian.Dietz2 at gmx.de
       
    Sat Dec 21 04:25:53 PST 2013
    
    
  
The function ccl::rdtsc can be used for counting cpu cycles, but it 
returns results depending on the current cpu the program is running on, 
which can be a problem for multithreaded applications.
Is there a way to get consistent values from the same cpu, so that one 
can measure how many cpu cycles a given function took to execute?
Alternatively, if this is not possible, would it be possible (and 
sensible) to restrict a process to only a single cpu, to avoid this problem?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clozure.com/pipermail/openmcl-devel/attachments/20131221/ba4d1d75/attachment.htm>
    
    
More information about the Openmcl-devel
mailing list