SWDEV-481861 - Add hipEventDestory for every hipEventCreate in all samples.
Change-Id: Ib1b860b02ef2640f321d54902b34ecf0e495ed65
This commit is contained in:
committed by
Jaydeepkumar Patel
szülő
f54ce39eb5
commit
dac779c834
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user