mirror of https://github.com/BOINC/boinc.git
- wrapper: eliminate spurious error message in zip parsing;
make it work if stderr.txt is one of the files being zipped. - user web: show GPU driver version as 341.07
This commit is contained in:
parent
ef163337c6
commit
47d3c9ffff
|
@ -272,7 +272,7 @@ function gpu_desc($x) {
|
|||
$i = (int)$d[4];
|
||||
$maj = (int)($i/100);
|
||||
$min = $i%100;
|
||||
$str .= " driver: $maj.$min";
|
||||
$str .= sprintf(" driver: %d.%02d", $maj, $min);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ BOINC_API_DIR = $(BOINC_DIR)/api
|
|||
BOINC_LIB_DIR = $(BOINC_DIR)/lib
|
||||
BOINC_ZIP_DIR = $(BOINC_DIR)/zip
|
||||
|
||||
CXXFLAGS = -g \
|
||||
CXXFLAGS = -g -O0 \
|
||||
-Wall -W -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -fno-common \
|
||||
-I$(BOINC_DIR) \
|
||||
-I$(BOINC_LIB_DIR) \
|
||||
|
|
|
@ -1,14 +1,15 @@
|
|||
<job_desc>
|
||||
<task>
|
||||
<application>worker</application>
|
||||
<stdin_filename>stdin</stdin_filename>
|
||||
<stdout_filename>stdout</stdout_filename>
|
||||
<command_line>10</command_line>
|
||||
</task>
|
||||
<task>
|
||||
<application>worker</application>
|
||||
<stdin_filename>stdin</stdin_filename>
|
||||
<stdout_filename>stdout</stdout_filename>
|
||||
<command_line>10</command_line>
|
||||
<application>./echo</application>
|
||||
<command_line>Hello World</command_line>
|
||||
<stdout_filename>stdout_file</stdout_filename>
|
||||
<stderr_filename>stderr_file</stderr_filename>
|
||||
</task>
|
||||
<unzip_input>
|
||||
<zipfilename>in.zip</zipfilename>
|
||||
</unzip_input>
|
||||
<zip_output>
|
||||
<zipfilename>out.zip</zipfilename>
|
||||
<filename>stderr.txt</filename>
|
||||
</zip_output>
|
||||
</job_desc>
|
||||
|
|
|
@ -400,6 +400,7 @@ int parse_unzip_input(XML_PARSER& xp) {
|
|||
}
|
||||
if (xp.parse_string("zipfilename", s)) {
|
||||
unzip_filenames.push_back(s);
|
||||
continue;
|
||||
}
|
||||
fprintf(stderr,
|
||||
"%s unexpected tag in job.xml: %s\n",
|
||||
|
@ -938,16 +939,6 @@ int main(int argc, char** argv) {
|
|||
}
|
||||
}
|
||||
|
||||
memset(&options, 0, sizeof(options));
|
||||
options.main_program = true;
|
||||
options.check_heartbeat = true;
|
||||
options.handle_process_control = true;
|
||||
|
||||
boinc_init_options(&options);
|
||||
fprintf(stderr, "wrapper: starting\n");
|
||||
|
||||
boinc_get_init_data(aid);
|
||||
|
||||
retval = parse_job_file();
|
||||
if (retval) {
|
||||
fprintf(stderr, "can't parse job file: %d\n", retval);
|
||||
|
@ -966,6 +957,20 @@ int main(int argc, char** argv) {
|
|||
write_checkpoint(0, 0);
|
||||
get_initial_file_list();
|
||||
}
|
||||
|
||||
// do initialization after getting initial file list,
|
||||
// in case we're supposed to zip stderr.txt
|
||||
//
|
||||
memset(&options, 0, sizeof(options));
|
||||
options.main_program = true;
|
||||
options.check_heartbeat = true;
|
||||
options.handle_process_control = true;
|
||||
|
||||
boinc_init_options(&options);
|
||||
fprintf(stderr, "wrapper: starting\n");
|
||||
|
||||
boinc_get_init_data(aid);
|
||||
|
||||
if (ntasks_completed > (int)tasks.size()) {
|
||||
fprintf(stderr,
|
||||
"Checkpoint file: ntasks_completed too large: %d > %d\n",
|
||||
|
|
Loading…
Reference in New Issue