mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-23 07:39:01 +00:00
Refactor wimpy feature (#2507)
- Make it a common parameter in harness using either '-w', '--wimpy' or 'CL_WIMPY_MODE' environment variable. - Remove all test specific wimpy variable. --------- Co-authored-by: Kévin Petit <kpet@free.fr>
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include "harness/testHarness.h"
|
||||
#include "harness/compat.h"
|
||||
#include "harness/ThreadPool.h"
|
||||
#include "harness/parseParameters.h"
|
||||
|
||||
#if defined(__APPLE__)
|
||||
#include <sys/sysctl.h>
|
||||
@@ -77,7 +78,6 @@ cl_mem gInBuffer;
|
||||
cl_mem gOutBuffers[kCallStyleCount];
|
||||
size_t gComputeDevices = 0;
|
||||
uint32_t gDeviceFrequency = 0;
|
||||
int gWimpyMode = 0;
|
||||
int gWimpyReductionFactor = 128;
|
||||
int gSkipTesting = 0;
|
||||
int gForceFTZ = 0;
|
||||
|
||||
@@ -80,7 +80,6 @@ extern int gHasDouble;
|
||||
extern int gTestDouble;
|
||||
extern int gHasHalfs;
|
||||
extern int gTestHalfs;
|
||||
extern int gWimpyMode;
|
||||
extern int gWimpyReductionFactor;
|
||||
extern int gSkipTesting;
|
||||
extern int gMinVectorSize;
|
||||
|
||||
@@ -247,7 +247,6 @@ static int ParseArgs(int argc, const char **argv)
|
||||
case 'h': gTestHalfs ^= 1; break;
|
||||
case 'l': gSkipTesting ^= 1; break;
|
||||
case 'm': gMultithread ^= 1; break;
|
||||
case 'w': gWimpyMode ^= 1; break;
|
||||
case '[':
|
||||
parseWimpyReductionFactor(arg, gWimpyReductionFactor);
|
||||
break;
|
||||
@@ -316,14 +315,6 @@ static int ParseArgs(int argc, const char **argv)
|
||||
}
|
||||
}
|
||||
|
||||
// Check for the wimpy mode environment variable
|
||||
if (getenv("CL_WIMPY_MODE"))
|
||||
{
|
||||
vlog("\n");
|
||||
vlog("*** Detected CL_WIMPY_MODE env ***\n");
|
||||
gWimpyMode = 1;
|
||||
}
|
||||
|
||||
vlog("\n");
|
||||
|
||||
PrintArch();
|
||||
@@ -364,9 +355,6 @@ static void PrintUsage(void)
|
||||
vlog("\t\t-l\tToggle link check mode. When on, testing is skipped, and we "
|
||||
"just check to see that the kernels build. (Off by default.)\n");
|
||||
vlog("\t\t-m\tToggle Multithreading. (On by default.)\n");
|
||||
vlog("\t\t-w\tToggle wimpy mode. When wimpy mode is on, we run a very "
|
||||
"small subset of the tests for each fn. NOT A VALID TEST! (Off by "
|
||||
"default.)\n");
|
||||
vlog(" \t\t-[2^n]\tSet wimpy reduction factor, recommended range of n is "
|
||||
"1-12, default factor(%u)\n",
|
||||
gWimpyReductionFactor);
|
||||
|
||||
Reference in New Issue
Block a user