From 343cf7e864e53d1b8b59e3de6c0b6979b3270f7a 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/clr commit: a6441c33340cab283555139189036aba9e75f8c8] --- .../hipDispatchLatency/hipDispatchLatency.cpp | 169 ++++++++++-------- 1 file changed, 90 insertions(+), 79 deletions(-) diff --git a/projects/clr/hipamd/samples/1_Utils/hipDispatchLatency/hipDispatchLatency.cpp b/projects/clr/hipamd/samples/1_Utils/hipDispatchLatency/hipDispatchLatency.cpp index fbdbced063..a47931958f 100644 --- a/projects/clr/hipamd/samples/1_Utils/hipDispatchLatency/hipDispatchLatency.cpp +++ b/projects/clr/hipamd/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