From 9874d352bff3aa4040dc8ec3ec12d80722e7cf11 Mon Sep 17 00:00:00 2001 From: Aditya Atluri Date: Tue, 15 Mar 2016 21:05:15 -0500 Subject: [PATCH] Added single kernel launch to sample [ROCm/hip-tests commit: f10d8792853994db149d3c7ad6562c87573da5bf] --- .../hipDispatchLatency/hipDispatchLatency.cpp | 169 ++++++++++-------- 1 file changed, 90 insertions(+), 79 deletions(-) diff --git a/projects/hip-tests/samples/1_Utils/hipDispatchLatency/hipDispatchLatency.cpp b/projects/hip-tests/samples/1_Utils/hipDispatchLatency/hipDispatchLatency.cpp index fbdbced063..a47931958f 100644 --- a/projects/hip-tests/samples/1_Utils/hipDispatchLatency/hipDispatchLatency.cpp +++ b/projects/hip-tests/samples/1_Utils/hipDispatchLatency/hipDispatchLatency.cpp @@ -36,85 +36,96 @@ __global__ void One(hipLaunchParm lp, float* Ad){ int main(){ -hipError_t err; -float *A, *Ad; + hipError_t err; + float *A, *Ad; -A = new float[LEN]; - -for(int i=0;i