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:
@@ -26,7 +26,6 @@
|
||||
|
||||
extern int g_arrVecSizes[NUM_VECTOR_SIZES];
|
||||
extern int g_arrVecSteps[NUM_VECTOR_SIZES];
|
||||
extern bool g_wimpyMode;
|
||||
|
||||
extern const char *g_arrVecSizeNames[NUM_VECTOR_SIZES];
|
||||
extern size_t g_arrVecAlignMasks[NUM_VECTOR_SIZES];
|
||||
|
||||
@@ -32,8 +32,6 @@ size_t g_arrVecAlignMasks[NUM_VECTOR_SIZES] = {
|
||||
(size_t)0xf // 16
|
||||
};
|
||||
|
||||
bool g_wimpyMode = false;
|
||||
|
||||
ExplicitType types[] = {
|
||||
kChar, kUChar, kShort, kUShort, kInt, kUInt, kLong,
|
||||
kULong, kFloat, kDouble, kNumExplicitTypes
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
|
||||
#include "defines.h"
|
||||
|
||||
#include "harness/parseParameters.h"
|
||||
|
||||
#define DEBUG_MEM_ALLOC 0
|
||||
|
||||
/** typedef struct _bufferStruct
|
||||
@@ -223,7 +225,7 @@ void initContents(bufferStruct *pBufferStruct, clState *pClState,
|
||||
break;
|
||||
}
|
||||
case 4: {
|
||||
if (!g_wimpyMode)
|
||||
if (!gWimpyMode)
|
||||
{
|
||||
uint32_t *ui = (uint32_t *)(pBufferStruct->m_pIn);
|
||||
for (i = 0; i < countIn; ++i)
|
||||
|
||||
Reference in New Issue
Block a user