fix out-of-bounds in AMD version of VectorAdd

This commit is contained in:
erwin.coumans
2010-06-25 00:40:20 +00:00
parent 5db1c008bd
commit b83e16b7ff
3 changed files with 6 additions and 1 deletions

View File

@@ -300,9 +300,10 @@ int main(int argc, char **argv)
{
num_t++;
//this can cause problems -> processing outside of the buffer
//make sure to check kernel
}
size_t globalThreads[] = {actualGlobalSize};//num_t * workgroupSize};
size_t globalThreads[] = {num_t * workgroupSize};
size_t localThreads[] = {workgroupSize};