Appendix B

System and Environment Management

B.1 Environment variables

A variety of environment variables can control certain aspects of CUDA Fortran compilation and execution. We group them here in terms of general environment variables, those related to the Command Line Profiler, and those related to just-in-time compilation of device code.

B.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 ...

Get CUDA Fortran for Scientists and Engineers 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.