- scheduler: on second thought, it would be better to add the above

feature without requiring use of score-based scheduling.
    So add a new customizable function, wu_is_infeasible_custom(),
    where projects can put job-specific checks.

    Also, move customizable functions (of which there are now 4)
    to a new file, sched_customize.cpp.

svn path=/trunk/boinc/; revision=18767
This commit is contained in:
David Anderson 2009-07-29 18:55:50 +00:00
parent bef2b6ca12
commit e3363c7eb8
7 changed files with 22 additions and 5 deletions

View File

@ -6653,3 +6653,19 @@ David 29 July 2009
sched/
sched_score.cpp
server_types.h
David 29 July 2009
- scheduler: on second thought, it would be better to add the above
feature without requiring use of score-based scheduling.
So add a new customizable function, wu_is_infeasible_custom(),
where projects can put job-specific checks.
Also, move customizable functions (of which there are now 4)
to a new file, sched_customize.cpp.
sched/
Makefile.am
sched_customize.cpp,h
sched_version.cpp
sched_send.cpp
handle_request.cpp

View File

@ -141,11 +141,11 @@ cgi_sources = \
main.cpp \
sched_array.cpp \
sched_assign.cpp \
sched_customize.cpp \
sched_hr.cpp \
sched_resend.cpp \
sched_locality.cpp \
sched_result.cpp \
sched_plan.cpp \
sched_score.cpp \
sched_send.cpp \
sched_timezone.cpp \

View File

@ -57,7 +57,7 @@
#include "sched_config.h"
#include "sched_locality.h"
#include "sched_result.h"
#include "sched_plan.h"
#include "sched_customize.h"
#include "time_stats_log.h"

View File

@ -48,7 +48,7 @@
#include "sched_score.h"
#include "sched_shmem.h"
#include "sched_version.h"
#include "sched_plan.h"
#include "sched_customize.h"
bool wu_is_infeasible_custom(WORKUNIT& wu, APP& app, BEST_APP_VERSION& bav) {
#if 1

View File

@ -32,5 +32,6 @@
#define PLAN_CUDA_MIN_DRIVER_VERSION 17700
#define PLAN_CUDA_MIN_RAM (254*1024*1024)
extern bool wu_is_infeasible_custom(WORKUNIT&, APP&, BEST_APP_VERSION&);
extern int app_plan(SCHEDULER_REQUEST&, char* plan_class, HOST_USAGE&);
extern bool app_plan_uses_gpu(const char* plan_class);

View File

@ -48,7 +48,7 @@
#include "sched_locality.h"
#include "sched_timezone.h"
#include "sched_assign.h"
#include "sched_plan.h"
#include "sched_customize.h"
#include "sched_send.h"

View File

@ -20,7 +20,7 @@
#include "main.h"
#include "sched_msgs.h"
#include "sched_config.h"
#include "sched_plan.h"
#include "sched_customize.h"
#include "server_types.h"
#include "sched_version.h"