1 | initial version |
Use something like
size_t local_centroids_size = CENTROIDS.rows * CENTROIDS.cols * sizeof(float);
...
args.push_back( make_pair( (size_t)local_centroids_size, (void *)NULL ) );
...
OpenCLExecutreKernel( ..., args, ..);
HTH
2 | No.2 Revision |
Use something like
size_t local_centroids_size = CENTROIDS.rows * CENTROIDS.cols * sizeof(float);
...
args.push_back( make_pair( (size_t)local_centroids_size, (void *)NULL ) );
...
OpenCLExecutreKernel( ..., args, ..);
HTHYou will want to adapt it, esp. change the number of bytes to a sizeof(int) factor.
HTH!
3 | further note |
Use something like
size_t local_centroids_size = CENTROIDS.rows * CENTROIDS.cols * sizeof(float);
...
args.push_back( make_pair( (size_t)local_centroids_size, (void *)NULL ) );
...
OpenCLExecutreKernel( ..., args, ..);
You will want to adapt it, esp. change the number of bytes to a sizeof(int) factor.factor. Basically, that's the same syntax as with use of setKernelArg.
HTH!