- scheduler: parse CUDA arrays correctly

svn path=/trunk/boinc/; revision=16738
This commit is contained in:
David Anderson 2008-12-22 22:17:26 +00:00
parent fae0903c0f
commit 7f26875f08
1 changed files with 4 additions and 0 deletions

View File

@ -330,9 +330,11 @@ int COPROC_CUDA::parse(FILE* fin) {
prop.maxThreadsDim[0] = atoi(buf2);
char* p = strchr(buf2, ' ');
if (p) {
p++;
prop.maxThreadsDim[1] = atoi(p);
p = strchr(p, ' ');
if (p) {
p++;
prop.maxThreadsDim[2] = atoi(p);
}
}
@ -342,9 +344,11 @@ int COPROC_CUDA::parse(FILE* fin) {
prop.maxGridSize[0] = atoi(buf2);
char* p = strchr(buf2, ' ');
if (p) {
p++;
prop.maxGridSize[1] = atoi(p);
p = strchr(p, ' ');
if (p) {
p++;
prop.maxGridSize[2] = atoi(p);
}
}