SWDEV-481860 - Match malloc/hipMalloc calls with free/hipFree calls in all samples.

Change-Id: Ib44551b3f60cd90fa7158e4ed016ef5549a34ef7
Este cometimento está contido em:
Jaydeep Patel criou e Jaydeepkumar Patel cometeu 2024-09-04 10:32:58 -04:00
1 ascendente dac779c834
cometimento b89a7c6201
9 ficheiros modificados
+43

Não existem ficheiros que correspondam à sua pesquisa

+4
Ver ficheiro
@@ -86,5 +86,9 @@ int main() {
} else {
std::cout << "success\n";
}
free(hInput);
free(hOutput);
checkHipErrors(hipFree(dInput));
checkHipErrors(hipFree(dOutput));
return 0;
}
+6
Ver ficheiro
@@ -84,5 +84,11 @@ int main(int argc, char *argv[])
checkHipErrors(hipErrorUnknown);
}
}
checkHipErrors(hipFree(A_d));
checkHipErrors(hipFree(C_d));
free(A_h);
free(C_h);
printf ("PASSED!\n");
}
+4
Ver ficheiro
@@ -84,5 +84,9 @@ int main(int argc, char *argv[])
checkHipErrors(hipErrorUnknown);
}
}
checkHipErrors(hipFree(A_d));
checkHipErrors(hipFree(C_d));
free(A_h);
free(C_h);
printf ("PASSED!\n");
}
+4
Ver ficheiro
@@ -85,5 +85,9 @@ int main(int argc, char *argv[])
checkHipErrors(hipErrorUnknown);
}
}
checkHipErrors(hipFree(A_d));
checkHipErrors(hipFree(C_d));
free(A_h);
free(C_h);
printf ("PASSED!\n");
}
+4
Ver ficheiro
@@ -85,5 +85,9 @@ int main(int argc, char *argv[])
checkHipErrors(hipErrorUnknown);
}
}
checkHipErrors(hipFree(A_d));
checkHipErrors(hipFree(C_d));
free(A_h);
free(C_h);
printf ("PASSED!\n");
}
+4
Ver ficheiro
@@ -85,5 +85,9 @@ int main(int argc, char *argv[])
checkHipErrors(hipErrorUnknown);
}
}
checkHipErrors(hipFree(A_d));
checkHipErrors(hipFree(C_d));
free(A_h);
free(C_h);
printf ("PASSED!\n");
}