SWDEV-481861 - Add hipEventDestory for every hipEventCreate in all samples.
Change-Id: Ib1b860b02ef2640f321d54902b34ecf0e495ed65
[ROCm/hip-tests commit: dac779c834]
Этот коммит содержится в:
коммит произвёл
Jaydeepkumar Patel
родитель
1cd42f33f1
Коммит
f06e679b18
@@ -127,6 +127,9 @@ int main() {
|
||||
|
||||
checkHipErrors(hipEventElapsedTime(&eventMs, start, stop));
|
||||
|
||||
checkHipErrors(hipEventDestroy(start));
|
||||
checkHipErrors(hipEventDestroy(stop));
|
||||
|
||||
printf("hipMemcpyDeviceToHost time taken = %6.3fms\n", eventMs);
|
||||
|
||||
// CPU MatrixTranspose computation
|
||||
|
||||
@@ -80,6 +80,9 @@ void launchKernel(float* C, float* A, float* B, bool manual){
|
||||
checkHipErrors(hipEventElapsedTime(&eventMs, start, stop));
|
||||
printf("kernel Execution time = %6.3fms\n", eventMs);
|
||||
|
||||
checkHipErrors(hipEventDestroy(start));
|
||||
checkHipErrors(hipEventDestroy(stop));
|
||||
|
||||
//Calculate Occupancy
|
||||
int numBlock = 0;
|
||||
checkHipErrors(hipOccupancyMaxActiveBlocksPerMultiprocessor(&numBlock, multiply, blockSize, 0));
|
||||
|
||||
@@ -129,6 +129,9 @@ int main() {
|
||||
|
||||
printf("hipMemcpyDeviceToHost time taken = %6.3fms\n", eventMs);
|
||||
|
||||
checkHipErrors(hipEventDestroy(start));
|
||||
checkHipErrors(hipEventDestroy(stop));
|
||||
|
||||
// CPU MatrixTranspose computation
|
||||
matrixTransposeCPUReference(cpuTransposeMatrix, Matrix, WIDTH);
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user