mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-25 08:19:02 +00:00
Synchronise with Khronos-private Gitlab branch
The maintenance of the conformance tests is moving to Github. This commit contains all the changes that have been done in Gitlab since the first public release of the conformance tests. Signed-off-by: Kevin Petit kevin.petit@arm.com
This commit is contained in:
@@ -499,24 +499,7 @@ static int ParseArgs( int argc, const char **argv )
|
||||
break;
|
||||
|
||||
case '[':
|
||||
// wimpy reduction factor can be set with the option -[2^n]
|
||||
// Default factor is 32, and n practically can be from 1 to 10
|
||||
{
|
||||
const char *arg_temp = strchr(&arg[1], ']');
|
||||
if( arg_temp != 0)
|
||||
{
|
||||
int new_factor = atoi(&arg[1]);
|
||||
arg=arg_temp; // Advance until ']'
|
||||
if(new_factor && !(new_factor & (new_factor - 1)))
|
||||
{
|
||||
vlog( " WimpyReduction factor changed from %d to %d \n",gWimpyReductionFactor, new_factor);
|
||||
gWimpyReductionFactor = new_factor;
|
||||
}else
|
||||
{
|
||||
vlog( " Error in WimpyReduction factor %d, must be power of 2 \n",gWimpyReductionFactor);
|
||||
}
|
||||
}
|
||||
}
|
||||
parseWimpyReductionFactor(arg, gWimpyReductionFactor);
|
||||
break;
|
||||
|
||||
case 'z':
|
||||
@@ -699,6 +682,8 @@ static void PrintArch( void )
|
||||
vlog( "\tARCH:\tx86_64\n" );
|
||||
#elif defined( __arm__ )
|
||||
vlog( "\tARCH:\tarm\n" );
|
||||
#elif defined( __aarch64__ )
|
||||
vlog( "\tARCH:\taarch64\n" );
|
||||
#else
|
||||
vlog( "\tARCH:\tunknown\n" );
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user