mirror of https://github.com/BOINC/boinc.git
scheduler: sample code for the SSE3 plan class must check for "pni" rather than "sse3"; clients report "pni"
This commit is contained in:
parent
1dac077a05
commit
b156e88208
|
@ -812,7 +812,7 @@ int main() {
|
|||
|
||||
HOST_USAGE hu;
|
||||
|
||||
strcpy(sreq.host.p_features, "sse3");
|
||||
strcpy(sreq.host.p_features, "pni");
|
||||
sreq.host.p_fpops =5e9;
|
||||
g_wreq->effective_ncpus = 4;
|
||||
if (1) {
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
</plan_class>
|
||||
<plan_class>
|
||||
<name> sse3 </name>
|
||||
<cpu_feature> sse3 </cpu_feature>
|
||||
<cpu_feature> pni </cpu_feature>
|
||||
<projected_flops_scale> 1.1 </projected_flops_scale>
|
||||
</plan_class>
|
||||
<plan_class>
|
||||
|
|
|
@ -664,15 +664,16 @@ static inline bool app_plan_nci(SCHEDULER_REQUEST&, HOST_USAGE& hu) {
|
|||
|
||||
// the following is for an app version that requires a processor with SSE3,
|
||||
// and will run 10% faster than the non-SSE3 version
|
||||
// NOTE: clients return "pni" instead of "sse3"
|
||||
//
|
||||
static inline bool app_plan_sse3(
|
||||
SCHEDULER_REQUEST& sreq, HOST_USAGE& hu
|
||||
) {
|
||||
downcase_string(sreq.host.p_features);
|
||||
if (!strstr(sreq.host.p_features, "sse3")) {
|
||||
if (!strstr(sreq.host.p_features, "pni")) {
|
||||
// Pre-6.x clients report CPU features in p_model
|
||||
//
|
||||
if (!strstr(sreq.host.p_model, "sse3")) {
|
||||
if (!strstr(sreq.host.p_model, "pni")) {
|
||||
//add_no_work_message("Your CPU lacks SSE3");
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue