Changes between Version 20 and Version 21 of AppCoprocessor


Ignore:
Timestamp:
Aug 21, 2009, 4:18:20 PM (15 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AppCoprocessor

    v20 v21  
    5656                );
    5757            }
    58             return PLAN_REJECT_CUDA_NO_DEVICE;
     58            add_no_work_message("Your computer has no NVIDIA GPU");
     59            return false;
    5960        }
    6061}}}
     
    6970                );
    7071            }
    71             return PLAN_REJECT_CUDA_VERSION;
    72         }
     72            add_no_work_message(
     73                "Your NVIDIA GPU lacks the needed compute capability"
     74            );
     75         }
    7376}}}
    7477
     
    8992            if (cp->cuda_version) {
    9093                if (cp->cuda_version < 2030) {
    91                     return PLAN_REJECT_CUDA_VERSION;
    92                 }
     94                    add_no_work_message("CUDA version 2.3 needed");
     95                    return false;
     96                 }
    9397            } else if (cp->display_driver_version) {
    9498                if (cp->display_driver_version < PLAN_CUDA23_MIN_DRIVER_VERSION) {
    95                     return PLAN_REJECT_CUDA_VERSION;
    96                 }
     99                    sprintf(buf, "NVIDIA display driver %d or later needed",
     100                        PLAN_CUDA23_MIN_DRIVER_VERSION
     101                    );
     102                 }
    97103            } else {
    98                 return PLAN_REJECT_CUDA_VERSION;
     104                add_no_work_message("CUDA version 2.3 needed");
     105                return false;
    99106            }
    100107}}}
     
    109116                );
    110117            }
    111             return PLAN_REJECT_CUDA_MEM;
     118            sprintf(buf,
     119                "Your NVIDIA GPU has insufficient memory (need %.0fMB)",
     120                PLAN_CUDA_MIN_RAM
     121            );
     122            add_no_work_message(buf);
     123            return false;
    112124        }
    113125}}}
     
    138150}}}
    139151
    140 Return 0 to indicate that the application can be run on the host:
     152Return true to indicate that the application can be run on the host:
    141153{{{
    142         return 0;
     154        return true;
    143155}}}