Appendix A: System and environment management
A.1 Environment variables
There are a variety of environment variables that can control certain aspects of CUDA Fortran compilation and execution.
A.1.1 General
CUDA_LAUNCH_BLOCKING, when set to 1, forces execution of kernels to be synchronous, that is, after launching, a kernel control will return to the CPU only after the kernel has completed. This provides an efficient way to check whether host-device synchronization errors are responsible for unexpected behavior. By default launch blocking is off.
CUDA_VISIBLE_DEVICES can be used to make certain devices invisible on the system and to change the enumeration of devices. A comma-separated list of integers is assigned to this variable, which contains the ...
Get CUDA Fortran for Scientists and Engineers, 2nd Edition 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.