Message boards : Server programs : create_work: unexpected XML tag or syntax
Message board moderation
Author | Message |
---|---|
Send message Joined: 17 Jul 18 Posts: 6 |
I was doing single job submission. I'm trying to create a test (fib calculation) and i got this message: PHP Warning: copy(/home/boincadm/projects/test_project//download/34a/../fibjob/fib_x86_64-pc-linux-gnu_d5ef183a): failed to open stream: No such file or directory in /home/boincadm/projects/test_project/bin/boinc_submit on line 414 process_input_template: bad WU template - no <workunit> process_input_template(): unexpected XML tag or syntax create_work: unexpected XML tag or syntax create_work in /home/boincadm/projects/test_project/ failed: 1 Can anyone help? |
Send message Joined: 21 Jun 06 Posts: 156 |
I was doing single job submission. I'm trying to create a test (fib calculation) and i got this message: Can you post your input_template content? |
Send message Joined: 17 Jul 18 Posts: 6 |
<input_template> <file_info> <number>0</number> </file_info> <workunit> <file_ref> <file_number>0</file_number> <open_name>in</open_name> </file_ref> <command_line>-cpu_time 30</command_line> </workunit> </input_template> This is actually from example_app's template. Right now, I just want to build a simple server that can handle job submit. Thanks! |
Send message Joined: 21 Jun 06 Posts: 156 |
<input_template> Do you have an input file? And whats your create_work command line? |
Send message Joined: 17 Jul 18 Posts: 6 |
I don't actually need input file, is it necessary? The create work command is from bin/boinc_submit create_job() function: function create_job() { global $wuid, $app_name, $infiles_phys, $program_phys, $project_dir; global $result_template_filename, $wu_template_filename; global $wrapper_job_filename, $verbose; chdir($project_dir); $cmd = "bin/create_work --min_quorum 1 --target_nresults 1 --appname $app_name --wu_name sj_$wuid --wu_id $wuid --wu_template $wu_template_filename --result_template $result_template_filename"; foreach ($infiles_phys as $infile) { $cmd .= " $infile"; } $cmd .= " $wrapper_job_filename"; $cmd .= " $program_phys"; if ($verbose) { echo "Executing command: $cmd\n"; } #echo "cmd is: $cmd\n"; system($cmd, $retval); if ($retval) { echo "create_work in $project_dir failed: $retval\n"; exit(1); } } which I echo to see: ./create_work --min_quorum 1 --target_nresults 1 --appname single_job_x86_64-pc-linux-gnu --wu_name sj_ --wu_id --wu_template templates/sj_wu_template_ --result_template templates/sj_result_template_ sj_.xml ../fibjob/fib_x86_64-pc-linux-gnu this gives me error like I described above. Sorry, I just started learning bionc, this question may look stupid to you. But can't the job that sent to host just an executable? or somehow, the input has already defined inside? |
Send message Joined: 4 Jul 12 Posts: 321 |
If you don't have an input file you need to remove it from the input template. Simple as that. But then every workunit created will do the same calculations. You somehow need to parameterize the work. In your simple case that would maybe mean that workunit_1 calculates fib(1), workunit_2 fib(2) and so on. How should the executable on the client computer know which part of your parameter space it should work on. The simplest case is via input file another is via commandline but than you need to alter the create_work call for every workunit which is harder to do. |
Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License,
Version 1.2 or any later version published by the Free Software Foundation.