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