Software Archive
Read-only legacy content
17060 Discussions

Converting Cilkview data to seconds

Matthew_D_
Beginner
259 Views

Hey folks,

I'm working with a system that needs the work and span of the programs I'm running in seconds and nanoseconds to run properly, and running Cilkview on them gives me work and span in processor instructions. Does anyone know of a way to convert that data from instructions to a unit of time?

Thanks!

Matt

0 Kudos
2 Replies
Barry_T_Intel
Employee
259 Views

Instructions are taken as a rough stand-in for time because they're easy to count with our Pin-based tool. There's no easy way to convert from instructions to time on an x86 because each instruction takes a different number of cycles.

Sorry.

   - Barry

0 Kudos
Matthew_D_
Beginner
259 Views

Ah, I see. Would that also mean there's no way to find the total number of cycles used by the program, or perhaps the average number of cycles per instruction?

Also, thanks for the prompt response!

Matt

0 Kudos
Reply