mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
[NFC] Use std::vector to store large size array. (#2060)
windows default stack size is 1M, BUFFER_SIZE is 2 * 1024 * 1024, use array with BUFFER_SIZE elemets on stack can exceed available stack size limits.
This commit is contained in:
@@ -139,7 +139,7 @@ int TestFunc_Float_Float_Float_Float(const Func *f, MTdata d, bool relaxedMode)
|
||||
float maxErrorVal3 = 0.0f;
|
||||
uint64_t step = getTestStep(sizeof(float), BUFFER_SIZE);
|
||||
|
||||
cl_uchar overflow[BUFFER_SIZE / sizeof(float)];
|
||||
std::vector<cl_uchar> overflow(BUFFER_SIZE / sizeof(float));
|
||||
|
||||
float float_ulps;
|
||||
if (gIsEmbedded)
|
||||
|
||||
Reference in New Issue
Block a user