make sure the global variable does not give zero

Change-Id: I299c4e74740e5df155a562b0ee609ac6539a9b28


[ROCm/hip commit: 1f770bfddb]
Ta zmiana jest zawarta w:
%! (template.HTML=Aditya Atluri)złożyło 2016-10-18 10:09:52 -05:00
1 rodzic dc1bfcc8a8
złożenie bcf466e793
Plik 1 zmieniony
+1
+1
Wyświetl plik
@@ -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++) {