pub(crate) fn validate_gpu_config(cfg: &mut Config) -> Result<(), String>