mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-21 06:49:02 +00:00
Enqueue fill buffer (#1561)
* grab latest from upstream OpenCL * Use clEnqueueFillBuffer rather than memset4 in all test files * Cleanup leftover code from memset_pattern4 * Remove unnecessary map, unmap, writeBuffer from math_brute_force tests * Remove extraneous build system change * Appease clang-format * Add option to perform buffer fills on the host Co-authored-by: Taeten Prettyman <taeten.j@gmail.com> Co-authored-by: taetenp <taet@holochip.com> Co-authored-by: Chip Davis <chip@holochip.com>
This commit is contained in:
@@ -65,6 +65,7 @@ static int gStopOnError = 0;
|
||||
static bool gSkipRestOfTests;
|
||||
int gForceFTZ = 0;
|
||||
int gWimpyMode = 0;
|
||||
int gHostFill = 0;
|
||||
static int gHasDouble = 0;
|
||||
static int gTestFloat = 1;
|
||||
// This flag should be 'ON' by default and it can be changed through the command
|
||||
@@ -421,6 +422,8 @@ static int ParseArgs(int argc, const char **argv)
|
||||
parseWimpyReductionFactor(arg, gWimpyReductionFactor);
|
||||
break;
|
||||
|
||||
case 'b': gHostFill ^= 1; break;
|
||||
|
||||
case 'z': gForceFTZ ^= 1; break;
|
||||
|
||||
case '1':
|
||||
@@ -550,6 +553,7 @@ static void PrintUsage(void)
|
||||
vlog("\t\t-[2^n]\tSet wimpy reduction factor, recommended range of n is "
|
||||
"1-10, default factor(%u)\n",
|
||||
gWimpyReductionFactor);
|
||||
vlog("\t\t-b\tFill buffers on host instead of device. (Default: off)\n");
|
||||
vlog("\t\t-z\tToggle FTZ mode (Section 6.5.3) for all functions. (Set by "
|
||||
"device capabilities by default.)\n");
|
||||
vlog("\t\t-v\tToggle Verbosity (Default: off)\n ");
|
||||
|
||||
Reference in New Issue
Block a user