// for new-style requests, check that the app version uses a // resource for which we need work // bool need_this_resource( HOST_USAGE& host_usage, APP_VERSION* avp, CLIENT_APP_VERSION* cavp ) { if (!g_wreq->rsc_spec_request) { return true; } int pt = host_usage.proc_type; if (!g_wreq->need_proc_type(pt)) { dont_need_message(proc_type_name(pt), avp, cavp); return false; } return true; }
// for new-style requests, check that the app version uses a // resource for which we need work // bool need_this_resource( HOST_USAGE& host_usage, APP_VERSION* avp, CLIENT_APP_VERSION* cavp ) { if (g_wreq->rsc_spec_request) { if (host_usage.ncudas) { if (!g_wreq->need_cuda()) { dont_need_message("CUDA", avp, cavp); return false; } } else if (host_usage.natis) { if (!g_wreq->need_ati()) { dont_need_message("ATI", avp, cavp); return false; } } else { if (!g_wreq->need_cpu()) { dont_need_message("CPU", avp, cavp); return false;; } } } return true; }