Add perfDispatch tests into hip direct_tests

Port perfDispatch tests from OpenCL into hip direct_tests

Change-Id: I9f8362636e329d2d0a434c4f012ccc46a524c746


[ROCm/hip commit: daf32606db]
Этот коммит содержится в:
Tao Sang committed 2020-04-21 14:00:27 -04:00
1 родитель c11c159905
Коммит 77190ec979
5 files changed
+922

No files matched your search

+28
Просмотреть файл
@@ -0,0 +1,28 @@
#ifndef _TIMER_H_
#define _TIMER_H_
#ifdef _WIN32
typedef __int64 i64 ;
#endif
#ifdef __linux__
typedef long long i64;
#endif
class CPerfCounter {
public:
CPerfCounter();
~CPerfCounter();
void Start(void);
void Stop(void);
void Reset(void);
double GetElapsedTime(void);
private:
i64 _freq;
i64 _clocks;
i64 _start;
};
#endif // _TIMER_H_