Add the option to use sched_yield in CUDA.
Add an option to minimize CPU usage when using the CUDA backend.