SWDEV-475568 - Fix compiling issues

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

Change-Id: Ib03328a2fb13375fa44626a42202b1eeb177b8b2


[ROCm/hip-tests commit: a2f37dfa3a]
Este commit está contenido en:
taosang2
2024-07-24 16:10:27 -04:00
cometido por Rakesh Roy
padre ad52c74707
commit bb901bef4a
Se han modificado 7 ficheros con 50 adiciones y 49 borrados
@@ -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;
}