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]
Bu işleme şunda yer alıyor:
taosang2
2021-11-24 21:55:27 -05:00
işlemeyi yapan: Tao Sang
ebeveyn 8c921fc3cc
işleme 6b3e3bf6c6
15 değiştirilmiş dosya ile 153 ekleme ve 12 silme
+4
Dosyayı Görüntüle
@@ -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");