corrected first and second kernel dispatch

[ROCm/hip commit: e23bd0a23e]
Tento commit je obsažen v:
Aditya Atluri committed 2016-03-15 14:22:00 -05:00
1 rodič 2223b41232
revize 637fca1cb6
1 file changed
+2 -2
+2 -2
Zobrazit soubor
@@ -64,13 +64,13 @@ int main(){
hipLaunchKernel(HIP_KERNEL_NAME(One), dim3(LEN/512), dim3(512), 0, 0, Ad);
hipEventRecord(stop);
hipEventElapsedTime(&mS, start, stop);
std::cout<<"First Kernel Launch: \t\t"<<mS*1000/ITER<<" uS"<<std::endl;
std::cout<<"First Kernel Launch: \t\t"<<mS*1000<<" uS"<<std::endl;
hipEventRecord(start);
hipLaunchKernel(HIP_KERNEL_NAME(One), dim3(LEN/512), dim3(512), 0, 0, Ad);
hipEventRecord(stop);
hipEventElapsedTime(&mS, start, stop);
std::cout<<"Second Kernel Launch: \t\t"<<mS*1000/ITER<<" uS"<<std::endl;
std::cout<<"Second Kernel Launch: \t\t"<<mS*1000<<" uS"<<std::endl;
hipEventRecord(start);
for(int i=0;i<ITER;i++){