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
Этот коммит содержится в:
taosang2
2021-11-24 21:55:27 -05:00
коммит произвёл Tao Sang
родитель df2eec8465
Коммит 76c6dcd558
15 изменённых файлов: 153 добавлений и 12 удалений
+4
Просмотреть файл
@@ -41,7 +41,11 @@ void OCLGenericAddressSpace::open(unsigned int test, char* units,
program_ = 0;
kernel_ = 0;
char* strVersion = 0;
#if EMU_ENV
arrSize = 10;
#else
arrSize = 1000;
#endif // EMU_ENV
error_ = _wrapper->clGetDeviceInfo(
devices_[_deviceId], CL_DEVICE_OPENCL_C_VERSION, 0, 0, &param_size);
CHECK_RESULT(error_ != CL_SUCCESS, "clGetPlatformInfo failed");