INNER CODE UNIT · Python

gpu_models_match

Steam-Headless/docker-steam-headless · .github/scripts/manage-compatibility-report.py:140

def gpu_models_match(model_a, model_b):
    if not model_a or not model_b:
        return False
    norm_a = normalize_gpu_model(model_a)
    norm_b = normalize_gpu_model(model_b)
    if not norm_a or not norm_b:
        return False
    if norm_a == norm_b:
        return True
    return bool(norm_a in norm_b or norm_b in norm_a)


def load_compatibility_config(repo_root):
    config_path = os.path.join(repo_root, ".github", "config", "compatibility-config.json")
    if os.path.exists(config_path):
        with open(config_path, encoding="utf-8") as f:
            return json.load(f)
    return {}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…