Skip to content

Commit

Permalink
client: in init_data.xml file for BUDA jobs, pass the BUDA variant as…
Browse files Browse the repository at this point in the history
… plan class

... rather than 'docker'
  • Loading branch information
davidpanderson committed Feb 1, 2025
1 parent fffcf2e commit 87b49ed
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion client/app_start.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,12 @@ void ACTIVE_TASK::init_app_init_data(APP_INIT_DATA& aid) {
aid.release = BOINC_RELEASE;
aid.app_version = app_version->version_num;
safe_strcpy(aid.app_name, wup->app->name);
safe_strcpy(aid.plan_class, app_version->plan_class);
if (strlen(wup->plan_class)) {
// BUDA jobs
safe_strcpy(aid.plan_class, wup->plan_class);
} else {
safe_strcpy(aid.plan_class, app_version->plan_class);
}
safe_strcpy(aid.symstore, project->symstore);
safe_strcpy(aid.acct_mgr_url, gstate.acct_mgr_info.master_url);
if (project->project_specific_prefs.length()) {
Expand Down
1 change: 1 addition & 0 deletions client/client_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ struct WORKUNIT {
// to versions before multi-platform support
bool has_resource_usage;
char plan_class[256];
// for BUDA jobs, the BUDA variant
RESOURCE_USAGE resource_usage;
std::string command_line;
std::vector<FILE_REF> input_files;
Expand Down
1 change: 1 addition & 0 deletions client/result.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ struct RESULT {
double report_deadline;
int version_num; // identifies the app used
char plan_class[64];
// used to associate this RESULT with an APP_VERSION
char platform[256];
APP_VERSION* avp;
std::vector<FILE_REF> output_files;
Expand Down

0 comments on commit 87b49ed

Please sign in to comment.