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:
@@ -22,6 +22,7 @@
|
||||
|
||||
#include "harness/conversions.h"
|
||||
#include "harness/ThreadPool.h"
|
||||
#include "harness/parseParameters.h"
|
||||
|
||||
#define NUM_TESTS 23
|
||||
|
||||
@@ -823,10 +824,10 @@ int run_specific_test(cl_device_id deviceID, cl_context context, cl_command_queu
|
||||
int run_multiple_tests(cl_device_id deviceID, cl_context context, cl_command_queue queue, int num_elements, ExplicitType type, int num, int *tests, int total_tests) {
|
||||
int errors = 0;
|
||||
|
||||
if (getenv("CL_WIMPY_MODE") && num == LONG_MATH_SHIFT_SIZE) {
|
||||
log_info("Detected CL_WIMPY_MODE env\n");
|
||||
log_info("Skipping long test\n");
|
||||
return 0;
|
||||
if (gWimpyMode && num == LONG_MATH_SHIFT_SIZE)
|
||||
{
|
||||
log_info("Running in wimpy mode, skipping long test\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
int i;
|
||||
|
||||
Reference in New Issue
Block a user