July 2024
Intermediate to advanced
436 pages
10h 46m
English
There are a variety of environment variables that can control certain aspects of CUDA Fortran compilation and execution.
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 ...
Read now
Unlock full access