From 5bce9ea5ef8a916412e80515f6533cc2d2a7085c Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Tue, 30 Jan 2018 12:32:46 +0530 Subject: [PATCH] Fix hipStreamAddCallback testcase for nvcc Change-Id: Ieec4b8d7933d8d68394d21d27132da206111efc8 --- tests/src/runtimeApi/stream/hipStreamAddCallback.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/src/runtimeApi/stream/hipStreamAddCallback.cpp b/tests/src/runtimeApi/stream/hipStreamAddCallback.cpp index 692d090509..0f9f32a253 100644 --- a/tests/src/runtimeApi/stream/hipStreamAddCallback.cpp +++ b/tests/src/runtimeApi/stream/hipStreamAddCallback.cpp @@ -24,6 +24,7 @@ THE SOFTWARE. */ #include +#include #include "hip/hip_runtime.h" #include "test_common.h" @@ -42,16 +43,17 @@ __global__ void vector_square(float *C_d, float *A_d, size_t N) } float *A_h, *C_h; -size_t N = 1000000; +bool cbDone = false; static void HIPRT_CB Callback(hipStream_t stream, hipError_t status, void *userData) { for (size_t i=0; i