make sure the global variable does not give zero

Change-Id: I299c4e74740e5df155a562b0ee609ac6539a9b28
이 커밋은 다음에 포함됨:
Aditya Atluri
2016-10-18 10:09:52 -05:00
부모 5d710c8802
커밋 9d7a82d6bf
+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++) {