Refactor CUDA backend
Fix, Plan thread colour count