CUDA device disabling in macOS

Is there any way to disable CUDA in one of three (or more) GPUs in macOS?
I have a three GPUs and I’d like to leave one device just for viewport work (no CUDA computations).