SWDEV-475568 - Fix compiling issues

Fix compiling issues of "make perf_test" under
hip-tests.

Change-Id: Ib03328a2fb13375fa44626a42202b1eeb177b8b2


[ROCm/hip-tests commit: a2f37dfa3a]
This commit is contained in:
taosang2
2024-07-24 16:10:27 -04:00
committed by Rakesh Roy
parent ad52c74707
commit bb901bef4a
7 changed files with 50 additions and 49 deletions
@@ -185,8 +185,8 @@ void hipPerfSampleRate::run(unsigned int test) {
void ** dPtr;
void * hOutPtr;
void * dOutPtr;
void * hInPtr[numBufs_];
void * dInPtr[numBufs_];
void ** hInPtr = new void *[numBufs_];
void ** dInPtr = new void *[numBufs_];
outBufSize_ =
sizes[NUM_SIZES - 1] * sizes[NUM_SIZES - 1] * typeSizes[NUM_TYPES - 1];
@@ -265,6 +265,8 @@ void hipPerfSampleRate::run(unsigned int test) {
}
HIP_CHECK(hipHostFree(hOutPtr));
HIP_CHECK(hipFree(dPtr));
delete [] hInPtr;
delete [] dInPtr;
}