CUDA is a complete and utter piece of shit software. It's just that it is a tiny bit less of a shitshow than the alternatives.