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]
이 커밋은 다음에 포함됨:
taosang2
2021-11-24 21:55:27 -05:00
커밋한 사람 Tao Sang
부모 8c921fc3cc
커밋 6b3e3bf6c6
15개의 변경된 파일153개의 추가작업 그리고 12개의 파일을 삭제
+5
파일 보기
@@ -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);