mirror of https://github.com/BOINC/boinc.git
- 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:
parent
bef2b6ca12
commit
e3363c7eb8
|
@ -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
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
||||
|
|
|
@ -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
|
|
@ -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);
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue