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]
This commit is contained in:
taosang2
2021-11-24 21:55:27 -05:00
committed by Tao Sang
orang tua 8c921fc3cc
melakukan 6b3e3bf6c6
15 mengubah file dengan 153 tambahan dan 12 penghapusan
@@ -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);