96 #define DEFAULT_NUM_THREADS 4
126 void Usage(
char *name);
165 for (
int i = 1; i < argc; ++i)
185 std::cerr <<
"Could not read argument after option " << argv[i-1] << std::endl;
197 std::cerr <<
"Could not read argument after option " << argv[i-1] << std::endl;
209 std::cerr <<
"Could not read argument after option " << argv[i-1] << std::endl;
221 std::cerr <<
"Could not read argument after option " << argv[i-1] << std::endl;
233 std::cerr <<
"Could not read argument after option " << argv[i-1] << std::endl;
242 std::cerr <<
"Invalid argument " << argv[i] << std::endl;
251 printf(
"\tUsage: %s [-h] [-c] [-k] [-e] [-f <int>] [-i <int>] [-x <int>] [-y <int>] [-o kernel]\n", name);
252 printf(
" -h Print this help menu.\n");
253 printf(
" -c Supress CPU timing run.\n");
254 printf(
" -k Supress Device (kernel only) timing run.\n");
255 printf(
" -e Supress output verification.\n");
256 printf(
" -f <int> Sets the filter width.\n");
257 printf(
" -i <int> Number of iterations.\n");
258 printf(
" -x <int> Sets the image width.\n");
259 printf(
" -y <int> Sets the image height.\n");
260 printf(
" -o <kernel> Sets the OpenCL kernel to use.\n");
struct paramStruct params
void InitParams(int argc, char *argv[])
void ParseCommandLine(int argc, char *argv[])
std::vector< std::string > kernelNames
size_t globalNDWorkSize[WORK_DIM]
std::vector< int > ompThreads
size_t localNDWorkSize[WORK_DIM]