Skip to content

Commit

Permalink
Merge pull request #5483 from BOINC/dpa_nci
Browse files Browse the repository at this point in the history
  • Loading branch information
AenBleidd authored Jan 8, 2024
2 parents 86669cd + 4117dd4 commit 74329dc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client/project.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ void PROJECT::init() {
disk_usage = 0.0;
disk_share = 0.0;
anonymous_platform = false;
non_cpu_intensive = true; // true until link a non-NCI app
non_cpu_intensive = false;
report_results_immediately = false;
pwf.reset(this);
send_time_stats_log = 0;
Expand Down
5 changes: 3 additions & 2 deletions client/project.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,9 @@ struct PROJECT : PROJ_AM {
// app_versions.xml file found in project dir;
// use those apps rather then getting from server
bool non_cpu_intensive;
// All this project's apps are non-CPU-intensive.
// (determined dynamically)
// The project has asserted (in sched reply) that
// all apps are non-CPU-intensive.
// Cleared if this is not the case.
bool use_symlinks;
bool report_results_immediately;
bool sched_req_no_work[MAX_RSC];
Expand Down
10 changes: 8 additions & 2 deletions client/scheduler_op.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This file is part of BOINC.
// http://boinc.berkeley.edu
// Copyright (C) 2008 University of California
// https://boinc.berkeley.edu
// Copyright (C) 2024 University of California
//
// BOINC is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License
Expand All @@ -15,6 +15,10 @@
// You should have received a copy of the GNU Lesser General Public License
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.

// Functions for doing scheduler RPCs,
// including creating requests and parsing replies.
// The reply handler is in cs_scheduler.cpp

#include "cpp.h"

#ifdef _WIN32
Expand Down Expand Up @@ -884,6 +888,8 @@ int SCHEDULER_REPLY::parse(FILE* in, PROJECT* project) {
continue;
} else if (xp.parse_bool("dont_use_dcf", dont_use_dcf)) {
continue;
} else if (xp.parse_bool("non_cpu_intensive", project->non_cpu_intensive)) {
continue;
} else if (xp.parse_int("send_time_stats_log", send_time_stats_log)){
continue;
} else if (xp.parse_int("send_job_log", send_job_log)) {
Expand Down

0 comments on commit 74329dc

Please sign in to comment.