mirror of https://github.com/BOINC/boinc.git
svn path=/trunk/boinc/; revision=18835
This commit is contained in:
parent
3864d5c99c
commit
230760136c
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue