mirror of https://github.com/BOINC/boinc.git
MGR: Don't mark a project as supported if it requires a coprocessor we lack
svn path=/trunk/boinc/; revision=23750
This commit is contained in:
parent
8de55ac7da
commit
7d6bad2e0f
|
@ -672,6 +672,13 @@ void CProjectInfoPage::OnPageChanged( wxWizardExEvent& event ) {
|
|||
}
|
||||
|
||||
// Can the core client support a platform that this project supports?
|
||||
//
|
||||
// NOTE: if the platform entry contains a modifier such as [cuda] or [ati],
|
||||
// that capability is required. If a project offers both a cuda application
|
||||
// and a CPU-only application for an operating system, it must have two
|
||||
// separate platform entries for that OS, one with [cuda] and one without.
|
||||
// Likewise for ati and mt.
|
||||
//
|
||||
for (j = 0;j < aClientPlatforms.size(); j++) {
|
||||
for (k = 0;k < aProjectPlatforms.size(); k++) {
|
||||
wxString strClientPlatform = aClientPlatforms[j];
|
||||
|
@ -680,23 +687,14 @@ void CProjectInfoPage::OnPageChanged( wxWizardExEvent& event ) {
|
|||
|
||||
if (strProjectPlatform.Find(_T("windows")) != wxNOT_FOUND) {
|
||||
pProjectInfo->m_bProjectSupportsWindows = true;
|
||||
if (strClientPlatform == strRootProjectPlatform) {
|
||||
pProjectInfo->m_bSupportedPlatformFound = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (strProjectPlatform.Find(_T("apple")) != wxNOT_FOUND) {
|
||||
pProjectInfo->m_bProjectSupportsMac = true;
|
||||
if (strClientPlatform == strRootProjectPlatform) {
|
||||
pProjectInfo->m_bSupportedPlatformFound = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (strProjectPlatform.Find(_T("linux")) != wxNOT_FOUND) {
|
||||
pProjectInfo->m_bProjectSupportsLinux = true;
|
||||
if (strClientPlatform == strRootProjectPlatform) {
|
||||
pProjectInfo->m_bSupportedPlatformFound = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (strProjectPlatform.Find(_T("[cuda")) != wxNOT_FOUND) {
|
||||
|
@ -704,6 +702,7 @@ void CProjectInfoPage::OnPageChanged( wxWizardExEvent& event ) {
|
|||
if ((pDoc->state.have_cuda) && (strClientPlatform == strRootProjectPlatform)) {
|
||||
pProjectInfo->m_bSupportedPlatformFound = true;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
if (strProjectPlatform.Find(_T("[ati")) != wxNOT_FOUND) {
|
||||
|
@ -711,6 +710,7 @@ void CProjectInfoPage::OnPageChanged( wxWizardExEvent& event ) {
|
|||
if ((pDoc->state.have_ati) && (strClientPlatform == strRootProjectPlatform)) {
|
||||
pProjectInfo->m_bSupportedPlatformFound = true;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
if (strProjectPlatform.Find(_T("[mt")) != wxNOT_FOUND) {
|
||||
|
@ -718,8 +718,10 @@ void CProjectInfoPage::OnPageChanged( wxWizardExEvent& event ) {
|
|||
if ((pDoc->host.p_ncpus >= 4) && (strClientPlatform == strRootProjectPlatform)) {
|
||||
pProjectInfo->m_bSupportedPlatformFound = true;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
// Application does not require CUDA, ATI or MT
|
||||
if (strClientPlatform == strRootProjectPlatform) {
|
||||
pProjectInfo->m_bSupportedPlatformFound = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue