SWDEV-1 - Add EMU_ENV option

Fix FEAT-39125
Add EMU_ENV option. If it is ON, the building is for
emulation environment, thus some logics can be adjusted
to match emulation environment. If it is OFF, the
building is for regular environment.
Currently only ocltst will use the option. But it can
be used for other modules.

Change-Id: I54e1bc1309e82794b41fca2ae1f01f004138dced


[ROCm/clr commit: 76c6dcd558]
Este commit está contenido en:
taosang2
2021-11-24 21:55:27 -05:00
cometido por Tao Sang
padre 8c921fc3cc
commit 6b3e3bf6c6
Se han modificado 15 ficheros con 153 adiciones y 12 borrados
@@ -58,6 +58,9 @@ void OCLCreateBuffer::open(unsigned int test, char *units, double &conversion,
maxSize_ = MaxSizeLimit;
}
#endif
#if EMU_ENV
maxSize_ = 1000;
#endif // EMU_ENV
cl_mem buf = NULL;
buf = _wrapper->clCreateBuffer(context_, CL_MEM_READ_WRITE, maxSize_, NULL,
&error_);