Errata
Chapter 4, page 122 - line 29 of the code listing which initializes the variable nDevices: istat = cudaGetDeviceCount(nDevices) needs to be placed before line 22 where nDevices is used.
Chapter 4, page 122 - line 29 of the code listing which initializes the variable nDevices: istat = cudaGetDeviceCount(nDevices) needs to be placed before line 22 where nDevices is used.