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]
이 커밋은 다음에 포함됨:
@@ -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);
|
||||
|
||||
|
||||
새 이슈에서 참조
사용자 차단