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
Dieser Commit ist enthalten in:
taosang2
2021-11-24 21:55:27 -05:00
committet von Tao Sang
Ursprung df2eec8465
Commit 76c6dcd558
15 geänderte Dateien mit 153 neuen und 12 gelöschten Zeilen
@@ -87,6 +87,11 @@ void OCLPinnedMemory::open(unsigned int test, char* units, double& conversion,
return;
}
row_size_ *= ratio_;
#if EMU_ENV
if (row_size_ > 5000) {
row_size_ = 5000;
}
#endif
row_size_ = floor(sqrt(row_size_));
row_size_ = (row_size_ + row_data_size_ - 1) & ~(row_data_size_ - 1);