mirror of https://github.com/BOINC/boinc.git
svn path=/trunk/boinc/; revision=16046
This commit is contained in:
parent
b329414a45
commit
a9d346b20e
|
@ -251,7 +251,7 @@ int CLIENT_STATE::init() {
|
|||
for (i=0; i<strs.size(); i++) {
|
||||
msg_printf(NULL, MSG_INFO, strs[i].c_str());
|
||||
}
|
||||
#if 1
|
||||
#if 0
|
||||
fake_cuda(coprocs, 1);
|
||||
#endif
|
||||
if (coprocs.coprocs.size() == 0) {
|
||||
|
|
|
@ -164,7 +164,7 @@ const char* COPROC_CUDA::get(COPROCS& coprocs) {
|
|||
COPROC_CUDA cc, cc2;
|
||||
for (int i=0; i<count; i++) {
|
||||
(*__cudaGetDeviceProperties)(&cc.prop, i);
|
||||
if (cc.prop.major == 0) break; // major == 0 means emulation
|
||||
if (cc.prop.major <= 0) break; // major == 0 means emulation
|
||||
if (cc.prop.major > 100) break; // e.g. 9999 is an error
|
||||
cc2 = cc;
|
||||
real_count++;
|
||||
|
@ -202,7 +202,7 @@ void fake_cuda(COPROCS& coprocs, int count) {
|
|||
cc->prop.maxGridSize[2] = 10;
|
||||
cc->prop.totalConstMem = 10;
|
||||
cc->prop.major = 1;
|
||||
cc->prop.minor = 1;
|
||||
cc->prop.minor = 2;
|
||||
cc->prop.clockRate = 10000;
|
||||
cc->prop.textureAlignment = 1000;
|
||||
coprocs.coprocs.push_back(cc);
|
||||
|
|
Loading…
Reference in New Issue