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]
Este commit está contenido en:
@@ -441,7 +441,12 @@ void OCLSVM::runSvmArgumentsAreRecognized() {
|
||||
}
|
||||
|
||||
void OCLSVM::runSvmCommandsExecutedInOrder() {
|
||||
#if EMU_ENV
|
||||
// Small number is enough to verify functionality in Emu environment
|
||||
const int numElements = 5000;
|
||||
#else
|
||||
const int numElements = 100000;
|
||||
#endif // EMU_ENV
|
||||
size_t size = numElements * sizeof(int);
|
||||
// allocate SVM memory
|
||||
int* data = (int*)clSVMAlloc(context_, CL_MEM_READ_WRITE, size, 0);
|
||||
|
||||
Referencia en una nueva incidencia
Block a user