From 2bf7addd46188139c1a1ba0bfa2dbba769f1e311 Mon Sep 17 00:00:00 2001 From: Bernd Machenschalk Date: Wed, 25 Jul 2018 10:59:55 +0100 Subject: [PATCH] scheduler plan class spec: remove '' code from that branch, doesn't belong here --- sched/plan_class_spec.cpp | 8 -------- sched/plan_class_spec.h | 1 - 2 files changed, 9 deletions(-) diff --git a/sched/plan_class_spec.cpp b/sched/plan_class_spec.cpp index 536bb58080..40d4d2940c 100644 --- a/sched/plan_class_spec.cpp +++ b/sched/plan_class_spec.cpp @@ -201,13 +201,6 @@ bool PLAN_CLASS_SPEC::check(SCHEDULER_REQUEST& sreq, HOST_USAGE& hu, const WORKU // hu.sequential_app(sreq.host.p_fpops); - // disabled by configuration - if (disabled) { - if (config.debug_version_select) - log_messages.printf(MSG_NORMAL, "[version] Plan class disabled\n"); - return false; - } - // WU restriction if (min_wu_id || max_wu_id || min_batch || max_batch) { if (wu_is_infeasible_for_plan_class(this, wu)) { @@ -992,7 +985,6 @@ int PLAN_CLASS_SPEC::parse(XML_PARSER& xp) { return 0; } if (xp.parse_str("name", name, sizeof(name))) continue; - if (xp.parse_bool("disabled", disabled)) continue; if (xp.parse_int("min_core_client_version", min_core_client_version)) continue; if (xp.parse_int("max_core_client_version", max_core_client_version)) continue; if (xp.parse_str("gpu_type", gpu_type, sizeof(gpu_type))) continue; diff --git a/sched/plan_class_spec.h b/sched/plan_class_spec.h index 5159f32e81..b46ad2dc31 100644 --- a/sched/plan_class_spec.h +++ b/sched/plan_class_spec.h @@ -26,7 +26,6 @@ // if you add anything here, initialize if in the constructor // struct PLAN_CLASS_SPEC { - bool disabled; char name[256]; char gpu_type[256]; bool cuda;