kfdtest: Adapt the CWSR test for emulators

The original test takes forever to run on emulators because emulators
are much slower than Asic. So intelligently detect the emulator scenarios
and reduce the run time by slashing the iteration times.

Change-Id: I087f43c04c2b23b5ab2ecaad07533b767c337e94
Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>


[ROCm/ROCR-Runtime commit: 21cda69ba9]
This commit is contained in:
Yong Zhao
2019-11-06 14:42:50 -05:00
committed by Yong Zhao
parent 0251b4b0e2
commit a139e04896
3 changed files with 42 additions and 0 deletions
@@ -36,6 +36,7 @@ class BaseQueue;
#define CounterToNanoSec(x) ((x) * 1000 / (is_dgpu() ? 27 : 100))
void WaitUntilInput();
HSAKMT_STATUS fscanf_dec(const char *file, uint32_t *num);
uint64_t RoundToPowerOf2(uint64_t val);
// @brief: waits until the value is written to the buffer or until time out if received through args