diff --git a/client/cpu_sched.cpp b/client/cpu_sched.cpp index 3f5e794a15..8c95a551bf 100644 --- a/client/cpu_sched.cpp +++ b/client/cpu_sched.cpp @@ -1019,6 +1019,11 @@ static inline bool more_important(RESULT* r0, RESULT* r1) { if (unfin0 && !unfin1) return true; if (!unfin0 && unfin1) return false; + // favor jobs that use more CPUs + // + if (r0->avp->avg_ncpus > r1->avp->avg_ncpus) return true; + if (r1->avp->avg_ncpus > r0->avp->avg_ncpus) return false; + // favor jobs selected first by schedule_cpus() // (e.g., because their project has high sched priority) // @@ -1549,7 +1554,9 @@ bool CLIENT_STATE::enforce_run_list(vector& run_list) { more_important ); +#if 0 promote_multi_thread_jobs(run_list); +#endif if (log_flags.cpu_sched_debug) { msg_printf(0, MSG_INFO, "[cpu_sched_debug] final job list:"); @@ -1657,6 +1664,7 @@ bool CLIENT_STATE::enforce_run_list(vector& run_list) { } } +#if 0 // Don't overcommit CPUs by > 1 if a MT job is scheduled. // Skip this check for GPU jobs. // @@ -1672,6 +1680,7 @@ bool CLIENT_STATE::enforce_run_list(vector& run_list) { } continue; } +#endif double wss = 0; if (atp) { diff --git a/html/user/submit_app.php b/html/user/submit_app.php deleted file mode 100644 index 8a5bd56df8..0000000000 --- a/html/user/submit_app.php +++ /dev/null @@ -1,83 +0,0 @@ -. - -// web interface for creating an app or app version -// -// contributor: Natalia Nikitina - -require_once("../inc/util.inc"); - -function handle_create_form() { - global $project, $auth; - - page_head("Create app"); - echo " - This form lets you specify parameters for a new application. - -

-

- - "; - start_table(); - row2("Application name", ""); - row2("Replication level", ""); - row2("Beta flag", ""); - row2("Validator", ""); - end_table(); - - start_table(); - row2("Version number", ""); - - //Get list of registered platforms - - //--- - //(tested on a local server) - $link = mysql_connect("localhost","boincadm","") or die("Could not connect: " . mysql_error()); - $q = mysql_query("use test24"); - $q = mysql_query("select id,name from platform order by id"); - $options_platforms = ""; - while($f=mysql_fetch_row($q)) $options_platforms .= ""; - //--- - - row2("Platform", ""); - row2("Plan class", ""); - row2("Main program", "
- Native BOINC application"); - - - if(isset($_GET['add_file'])) - $add_file = $_GET['add_file']+1; - else - $add_file = 1; - for($i=0; $i<$add_file; $i++) - row2("Additional file", "
- Copyfile"); - - row2("","(more additional files)"); - row2("",""); - end_table(); - echo "
\n"; - echo "

Return to job control page\n"; - page_tail(); -} - -handle_create_form(); - -?>