svn path=/trunk/boinc/; revision=18835

This commit is contained in:
David Anderson 2009-08-13 16:17:26 +00:00
parent 3864d5c99c
commit 230760136c
2 changed files with 6 additions and 1 deletions

View File

@ -260,7 +260,7 @@ int CLIENT_STATE::init() {
msg_printf(NULL, MSG_INFO, strs[i].c_str());
}
#if 0
fake_cuda(coprocs, 1);
fake_cuda(coprocs, 2);
msg_printf(NULL, MSG_INFO, "Faking a CUDA device");
#endif
if (coprocs.coprocs.size() == 0) {

View File

@ -360,6 +360,11 @@ void fake_cuda(COPROCS& coprocs, int count) {
COPROC_CUDA* cc = new COPROC_CUDA;
strcpy(cc->type, "CUDA");
cc->count = count;
for (int i=0; i<count; i++) {
cc->device_nums[i] = i;
}
cc->display_driver_version = 18000;
cc->cuda_version = 2020;
strcpy(cc->prop.name, "CUDA NVIDIA chip");
cc->prop.totalGlobalMem = 256*1024*1024;
cc->prop.sharedMemPerBlock = 100;