2008-08-06 18:36:30 +00:00
|
|
|
// This file is part of BOINC.
|
2008-03-20 03:13:30 +00:00
|
|
|
// http://boinc.berkeley.edu
|
|
|
|
// Copyright (C) 2008 University of California
|
|
|
|
//
|
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.
|
2008-03-20 03:13:30 +00:00
|
|
|
//
|
2008-08-06 18:36:30 +00:00
|
|
|
// BOINC is distributed in the hope that it will be useful,
|
2008-03-20 03:13:30 +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/>.
|
2008-03-20 03:13:30 +00:00
|
|
|
|
|
|
|
#include "boinc_db.h"
|
2009-08-10 04:56:46 +00:00
|
|
|
#include "sched_types.h"
|
2008-03-20 03:13:30 +00:00
|
|
|
|
2009-01-20 21:31:13 +00:00
|
|
|
// reasons for the planning function to reject a host
|
|
|
|
|
2009-02-17 03:16:25 +00:00
|
|
|
#define PLAN_REJECT_CUDA_NO_DEVICE 2
|
|
|
|
#define PLAN_REJECT_CUDA_VERSION 3
|
|
|
|
#define PLAN_REJECT_NVIDIA_DRIVER_VERSION 4
|
|
|
|
#define PLAN_REJECT_CUDA_MEM 5
|
|
|
|
#define PLAN_REJECT_CUDA_SPEED 6
|
|
|
|
#define PLAN_REJECT_UNKNOWN 7
|
2009-06-05 21:11:50 +00:00
|
|
|
#define PLAN_REJECT_INSUFFICIENT_CPUS 8
|
2009-07-22 18:41:02 +00:00
|
|
|
#define PLAN_REJECT_CPU_FEATURE 9
|
2009-08-03 21:30:19 +00:00
|
|
|
#define PLAN_REJECT_NVIDIA_COMPUTE_CAPABILITY 10
|
2009-01-20 21:31:13 +00:00
|
|
|
|
2009-08-17 17:07:38 +00:00
|
|
|
#define PLAN_REJECT_ATI_NO_DEVICE 11
|
|
|
|
|
2009-05-28 16:37:26 +00:00
|
|
|
#define PLAN_CUDA_MIN_DRIVER_VERSION 17700
|
2009-08-03 21:30:19 +00:00
|
|
|
#define PLAN_CUDA23_MIN_DRIVER_VERSION 19038
|
2009-05-28 16:37:26 +00:00
|
|
|
#define PLAN_CUDA_MIN_RAM (254*1024*1024)
|
2009-08-21 02:12:31 +00:00
|
|
|
#define PLAN_CUDA23_MIN_RAM (384*1024*1024)
|
2009-05-28 16:37:26 +00:00
|
|
|
|
2009-07-29 18:55:50 +00:00
|
|
|
extern bool wu_is_infeasible_custom(WORKUNIT&, APP&, BEST_APP_VERSION&);
|
2009-01-20 21:31:13 +00:00
|
|
|
extern int app_plan(SCHEDULER_REQUEST&, char* plan_class, HOST_USAGE&);
|
2009-06-01 22:15:14 +00:00
|
|
|
extern bool app_plan_uses_gpu(const char* plan_class);
|