[Openmcl-devel] counting cpu cycles?
Bill St. Clair
wws at clozure.com
Sat Dec 21 08:51:11 PST 2013
In Linux, you can start a process with "taskset" or call
"sched_setaffinity" (or "taskset") after it has started to limit it to
using one or more specific cores. Don't know if there are similar
commands/functions in OS X or Windows.
I haven't actually done that with a CCL process, but I see no reason it
On Sat, Dec 21, 2013 at 7:25 AM, Florian Dietz <Florian.Dietz2 at gmx.de>wrote:
> 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?
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Openmcl-devel