Appendix C. Need-to-Know C Programming
This appendix covers the basics of C programming that provides our jumping off point for CUDA programming. We start from scratch with a general description of the C language and then cover the procedures for creating, compiling, and executing C language apps. By the end of the appendix, we will have fully discussed dist_v1
and dist_v2
, the two distance apps that will serve as our initial examples for parallelization with CUDA.
Characterization of C
Here is the very short version of the three basic characteristics of the C programming language you need to know about:
• C is a compiled language, so we will write code in a version of C that is recognizable to humans (i.e., the code consists of familiar-looking ...
Get CUDA for Engineers: An Introduction to High-Performance Parallel Computing now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.