mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09: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:
@@ -36,6 +36,7 @@ bool gDisableSPIRVValidation = false;
|
||||
std::string gSPIRVValidator = DEFAULT_SPIRV_VALIDATOR;
|
||||
unsigned gNumWorkerThreads;
|
||||
bool gListTests = false;
|
||||
bool gWimpyMode = false;
|
||||
|
||||
void helpInfo()
|
||||
{
|
||||
@@ -52,6 +53,10 @@ void helpInfo()
|
||||
Select parallel execution with the specified number of worker threads.
|
||||
--list
|
||||
List sub-tests
|
||||
-w, --wimpy
|
||||
Enable wimpy mode. It does not impact all tests. Impacted tests will run
|
||||
with a very small subset of the tests. This option should not be used
|
||||
for conformance submission (default: disabled).
|
||||
|
||||
For offline compilation (binary and spir-v modes) only:
|
||||
--compilation-cache-mode <cache-mode>
|
||||
@@ -112,6 +117,11 @@ int parseCustomParam(int argc, const char *argv[], const char *ignore)
|
||||
delArg++;
|
||||
gListTests = true;
|
||||
}
|
||||
else if (!strcmp(argv[i], "--wimpy") || !strcmp(argv[i], "-w"))
|
||||
{
|
||||
delArg++;
|
||||
gWimpyMode = true;
|
||||
}
|
||||
else if (!strcmp(argv[i], "--compilation-mode"))
|
||||
{
|
||||
delArg++;
|
||||
|
||||
Reference in New Issue
Block a user