[TransferBench] Fixing some merge issues

This commit is contained in:
Gilbert Lee
2021-02-05 16:46:20 +00:00
förälder ab1e7a0318
incheckning f372c53d52
-20
Visa fil
@@ -166,21 +166,12 @@ int main(int argc, char **argv)
links[i].blockParam = (BlockParam*)malloc(ev.numCpuPerLink * sizeof(BlockParam));
}
}
<<<<<<< HEAD
// Loop over all the different number of bytes to use per Link
for (auto N : valuesOfN)
{
if (!ev.outputToCsv) printf("Test %d: [%lu bytes]\n", testNum, N * sizeof(float));
=======
// Loop over all the different number of bytes to use per Link
for (auto N : valuesOfN)
{
if (!ev.outputToCsv) printf("Test %d: [%lu bytes]\n", testNum, N * sizeof(float));
>>>>>>> origin/develop
// Prepare links based on current N
for (int i = 0; i < numLinks; i++)
{
@@ -340,7 +331,6 @@ int main(int argc, char **argv)
DeallocateMemory(links[i].dstMemType, links[i].dstIndex, links[i].dstMem);
if (links[i].exeMemType == MEM_GPU)
<<<<<<< HEAD
{
HIP_CALL(hipEventDestroy(links[i].startEvent));
HIP_CALL(hipEventDestroy(links[i].stopEvent));
@@ -349,16 +339,6 @@ int main(int argc, char **argv)
}
else if (links[i].exeMemType == MEM_CPU)
{
=======
{
HIP_CALL(hipEventDestroy(links[i].startEvent));
HIP_CALL(hipEventDestroy(links[i].stopEvent));
HIP_CALL(hipStreamDestroy(links[i].stream));
HIP_CALL(hipFree(links[i].blockParam));
}
else if (links[i].exeMemType == MEM_CPU)
{
>>>>>>> origin/develop
free(links[i].blockParam);
}
}