Prefer to read without ads? Become a member — from $10/month — and support the work. Already a member? Log in to read ad-free on this device.

Appendix A The CUDA Handbook Library

As mentioned in Chapter 1, the source code accompanying this book is open source under the 2-paragraph BSD license. A pointer to the source code is available on http://www.cudahandbook.com, and developers can find the Git repository here:

https://github.com/ArchaeaSoftware/cudahandbook

This Appendix briefly describes the features of the CUDA Handbook Library (chLib), a set of portable header files located in the chLib/ subdirectory of the source code project. chLib is not intended to be reused in production software; it provides the minimum functionality, in the smallest possible amount of source code, needed to illustrate the concepts covered in this book. chLib is portable to all target operating systems for CUDA, so often must expose support for the intersection of those operating systems’ features. Any operating system will have better timing support and better threading support than chLib, and since most applications are OS-specific, those applications would be better-advised to use their operating system’s native timing and threading facilities directly.

In this chapter