[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:
Haonan Yang
2024-08-29 20:45:40 +08:00
committed by GitHub
parent c0db608eac
commit a7162188d6
3 changed files with 3 additions and 3 deletions

View File

@@ -79,7 +79,7 @@ int TestFunc_Half_Half_Half_Half(const Func *f, MTdata d, bool relaxedMode)
constexpr size_t bufferElements = BUFFER_SIZE / sizeof(cl_half);
cl_uchar overflow[bufferElements];
std::vector<cl_uchar> overflow(bufferElements);
float half_ulps = f->half_ulps;
int skipNanInf = (0 == strcmp("fma", f->nameInCode));