make sure the global variable does not give zero

Change-Id: I299c4e74740e5df155a562b0ee609ac6539a9b28
这个提交包含在:
Aditya Atluri 于 2016-10-18 10:09:52 -05:00 提交
1 父节点 5d710c8802
当前提交 9d7a82d6bf
1 个文件已更改
+1
@@ -51,6 +51,7 @@ int main()
HIP_ASSERT(hipMemcpy(dPtr, hPtr, SIZE, hipMemcpyHostToDevice));
hipLaunchKernel(Alloc, dim3(1,1,1), dim3(NUM,1,1), 0, 0, dPtr);
HIP_ASSERT(hipMemcpy(hPtr, dPtr, SIZE, hipMemcpyDeviceToHost));
assert(hPtr[0] != 0);
hipLaunchKernel(Free, dim3(1,1,1), dim3(NUM,1,1), 0, 0, dPtr);
HIP_ASSERT(hipFree(dPtr));
for(uint32_t i=1;i<NUM;i++) {