2008-08-06 18:36:30 +00:00
|
|
|
// This file is part of BOINC.
|
2005-11-30 22:52:23 +00:00
|
|
|
// http://boinc.berkeley.edu
|
2008-08-06 18:36:30 +00:00
|
|
|
// Copyright (C) 2008 University of California
|
2005-11-30 22:52:23 +00:00
|
|
|
//
|
2008-08-06 18:36:30 +00:00
|
|
|
// BOINC 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 3 of the License, or (at your option) any later version.
|
2005-11-30 22:52:23 +00:00
|
|
|
//
|
2008-08-06 18:36:30 +00:00
|
|
|
// BOINC is distributed in the hope that it will be useful,
|
2005-11-30 22:52:23 +00:00
|
|
|
// 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.
|
|
|
|
//
|
2008-08-06 18:36:30 +00:00
|
|
|
// You should have received a copy of the GNU Lesser General Public License
|
|
|
|
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
|
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;
|
|
|
|
}
|