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]
这个提交包含在:
1 父节点
8c921fc3cc
当前提交
6b3e3bf6c6
15 个文件已更改
+153
-12
没有与搜索条件相匹配的文件
@@ -177,6 +177,9 @@ void OCLCreateImage::open(unsigned int test, char *units, double &conversion,
|
||||
ImageSizeY = max3DHeight;
|
||||
}
|
||||
ImageSizeZ = maxSize_ / (ImageSizeX * ImageSizeY * 16);
|
||||
#if EMU_ENV
|
||||
ImageSizeX = ImageSizeY = ImageSizeZ = 4;
|
||||
#endif // EMU_ENV
|
||||
} else {
|
||||
ImageSizeX = 4;
|
||||
ImageSizeY = 4;
|
||||
@@ -207,6 +210,9 @@ void OCLCreateImage::open(unsigned int test, char *units, double &conversion,
|
||||
ImageSizeY /= 2;
|
||||
}
|
||||
#endif
|
||||
#if EMU_ENV
|
||||
ImageSizeX = ImageSizeY = 4;
|
||||
#endif // EMU_ENV
|
||||
} else {
|
||||
ImageSizeX = 4;
|
||||
ImageSizeY = 4;
|
||||
|
||||
在新工单中引用
屏蔽一个用户