2005-11-30 22:52:23 +00:00
|
|
|
// Berkeley Open Infrastructure for Network Computing
|
|
|
|
// http://boinc.berkeley.edu
|
|
|
|
// Copyright (C) 2005 University of California
|
|
|
|
//
|
|
|
|
// This is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU Lesser General Public
|
|
|
|
// License as published by the Free Software Foundation;
|
|
|
|
// either version 2.1 of the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This software is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
// See the GNU Lesser General Public License for more details.
|
|
|
|
//
|
|
|
|
// To view the GNU Lesser General Public License visit
|
|
|
|
// http://www.gnu.org/copyleft/lesser.html
|
|
|
|
// or write to the Free Software Foundation, Inc.,
|
2007-10-09 11:35:47 +00:00
|
|
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
2005-11-30 22:52:23 +00:00
|
|
|
|
2007-05-29 23:41:31 +00:00
|
|
|
extern bool already_sent_to_different_platform_quick(
|
2007-06-14 18:02:00 +00:00
|
|
|
SCHEDULER_REQUEST& sreq, WORKUNIT&, APP&
|
2007-05-29 23:41:31 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
extern bool already_sent_to_different_platform_careful(
|
2007-06-14 18:02:00 +00:00
|
|
|
SCHEDULER_REQUEST& sreq, WORK_REQ& wreq, WORKUNIT& workunit, APP&
|
2005-08-04 03:50:04 +00:00
|
|
|
);
|
|
|
|
|
2007-05-29 23:41:31 +00:00
|
|
|
extern bool hr_unknown_platform(HOST&);
|
2007-05-30 22:10:57 +00:00
|
|
|
|
2007-06-14 18:02:00 +00:00
|
|
|
// return the HR type to use for this app;
|
|
|
|
// app-specific HR type overrides global HR type
|
|
|
|
//
|
2007-06-20 22:34:06 +00:00
|
|
|
inline int app_hr_type(APP& app) {
|
2007-06-14 18:02:00 +00:00
|
|
|
if (app.homogeneous_redundancy) {
|
|
|
|
return app.homogeneous_redundancy;
|
|
|
|
}
|
|
|
|
return config.homogeneous_redundancy;
|
|
|
|
}
|