mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-26 08:49:02 +00:00
Half (#1554)
* Added on-device reset for half * run clang-format. * test_half - Reset buffer with ushort rather than half type * Half - update type in secondary reset kernel src * Remove useless memset() calls. * Add an option to still perform buffer resets on the host * Check for program generation failure before attempting to create the kernel * Don't exceed the range of a ushort when storing * Appease clang-format Co-authored-by: Joshua Luceno <joshualuceno@gmail.com> Co-authored-by: taetenp <taet@holochip.com> Co-authored-by: Chip Davis <chip@holochip.com>
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -61,6 +61,7 @@ size_t gWorkGroupSize = 0;
|
|||||||
bool gWimpyMode = false;
|
bool gWimpyMode = false;
|
||||||
int gWimpyReductionFactor = 512;
|
int gWimpyReductionFactor = 512;
|
||||||
int gTestDouble = 0;
|
int gTestDouble = 0;
|
||||||
|
bool gHostReset = false;
|
||||||
|
|
||||||
#if defined( __APPLE__ )
|
#if defined( __APPLE__ )
|
||||||
int gReportTimes = 1;
|
int gReportTimes = 1;
|
||||||
|
|||||||
@@ -69,6 +69,7 @@ extern size_t gMaxThreadGroupSize;
|
|||||||
extern size_t gWorkGroupSize;
|
extern size_t gWorkGroupSize;
|
||||||
extern int gTestDouble;
|
extern int gTestDouble;
|
||||||
extern int gReportTimes;
|
extern int gReportTimes;
|
||||||
|
extern bool gHostReset;
|
||||||
|
|
||||||
// gWimpyMode indicates if we run the test in wimpy mode where we limit the
|
// gWimpyMode indicates if we run the test in wimpy mode where we limit the
|
||||||
// size of 32 bit ranges to a much smaller set. This is meant to be used
|
// size of 32 bit ranges to a much smaller set. This is meant to be used
|
||||||
|
|||||||
@@ -194,6 +194,8 @@ static int ParseArgs( int argc, const char **argv )
|
|||||||
gReportTimes ^= 1;
|
gReportTimes ^= 1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'r': gHostReset = true; break;
|
||||||
|
|
||||||
case 'w': // Wimpy mode
|
case 'w': // Wimpy mode
|
||||||
gWimpyMode = true;
|
gWimpyMode = true;
|
||||||
break;
|
break;
|
||||||
@@ -235,13 +237,17 @@ static int ParseArgs( int argc, const char **argv )
|
|||||||
|
|
||||||
static void PrintUsage( void )
|
static void PrintUsage( void )
|
||||||
{
|
{
|
||||||
vlog( "%s [-dthw]: <optional: test names>\n", appName );
|
vlog("%s [-dthw]: <optional: test names>\n", appName);
|
||||||
vlog( "\t\t-d\tToggle double precision testing (default: on if double supported)\n" );
|
vlog("\t\t-d\tToggle double precision testing (default: on if double "
|
||||||
vlog( "\t\t-t\tToggle reporting performance data.\n" );
|
"supported)\n");
|
||||||
vlog( "\t\t-w\tRun in wimpy mode\n" );
|
vlog("\t\t-t\tToggle reporting performance data.\n");
|
||||||
vlog( "\t\t-[2^n]\tSet wimpy reduction factor, recommended range of n is 1-12, default factor(%u)\n", gWimpyReductionFactor);
|
vlog("\t\t-r\tReset buffers on host instead of on device.\n");
|
||||||
vlog( "\t\t-h\tHelp\n" );
|
vlog("\t\t-w\tRun in wimpy mode\n");
|
||||||
for( int i = 0; i < test_num; i++ )
|
vlog("\t\t-[2^n]\tSet wimpy reduction factor, recommended range of n is "
|
||||||
|
"1-12, default factor(%u)\n",
|
||||||
|
gWimpyReductionFactor);
|
||||||
|
vlog("\t\t-h\tHelp\n");
|
||||||
|
for (int i = 0; i < test_num; i++)
|
||||||
{
|
{
|
||||||
vlog("\t\t%s\n", test_list[i].name );
|
vlog("\t\t%s\n", test_list[i].name );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user