Skip to Main Content
Multicore and GPU Programming
book

Multicore and GPU Programming

by Gerassimos Barlas
December 2014
Intermediate to advanced content levelIntermediate to advanced
698 pages
19h 8m
English
Morgan Kaufmann
Content preview from Multicore and GPU Programming
Appendix C

Time measurement

C.1 Introduction

High-resolution measurement of time is a critical capability for calculating performance and keeping track of events in your system, e.g., for debugging purposes. After all, the bottom line is how much time we can gain by introducing threads, GPU computation and the like in an application.

Time measurement can be identified as absolute or relative. The concept of absolute or universal time dates back to Isaac Newton, and many will argue that in the post-general-relativity era there is no such thing as absolute time! In our context, absolute time has no place either, since we are concerned with time spans, as in relative time.

A common pattern that is used in all the sections that follow is that ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The CUDA Handbook: A Comprehensive Guide to GPU Programming

The CUDA Handbook: A Comprehensive Guide to GPU Programming

Nicholas Wilt
PThreads Programming

PThreads Programming

Dick Buttlar, Jacqueline Farrell, Bradford Nichols

Publisher Resources

ISBN: 9780124171374