MGR: Don't mark a project as supported if it requires a coprocessor we lack

svn path=/trunk/boinc/; revision=23752
This commit is contained in:
Charlie Fenton 2011-06-19 21:59:16 +00:00
parent 422ac99be8
commit 8a9c474b72
1 changed files with 13 additions and 6 deletions

View File

@ -699,20 +699,27 @@ void CProjectInfoPage::OnPageChanged( wxWizardExEvent& event ) {
if (strProjectPlatform.Find(_T("[cuda")) != wxNOT_FOUND) {
pProjectInfo->m_bProjectSupportsNvidiaGPU = true;
if (!pDoc->state.have_cuda) {
continue;
}
}
if (strProjectPlatform.Find(_T("[ati")) != wxNOT_FOUND) {
pProjectInfo->m_bProjectSupportsATIGPU = true;
if (!pDoc->state.have_ati) {
continue;
}
}
if (strProjectPlatform.Find(_T("[mt")) != wxNOT_FOUND) {
pProjectInfo->m_bProjectSupportsMulticore = true;
}
if (pProjectInfo->m_bProjectSupportsNvidiaGPU) {
if (!pDoc->state.have_cuda) continue;
}
if (pProjectInfo->m_bProjectSupportsATIGPU) {
if (!pDoc->state.have_ati) {
continue;
}
}
if (pProjectInfo->m_bProjectSupportsMulticore) {
if (pDoc->host.p_ncpus < 4) {
continue;
}