From deb2638397b155911ccfc110fbafd211e877377d Mon Sep 17 00:00:00 2001 From: Rahul Garg Date: Thu, 1 Sep 2016 11:00:30 +0530 Subject: [PATCH] Added HIP_INIT_API to hipDeviceSynchronize() Change-Id: I9bd6bf206905621b17e1999994b5ea09b7382180 --- src/hip_device.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hip_device.cpp b/src/hip_device.cpp index d31e3b5890..14338c11de 100644 --- a/src/hip_device.cpp +++ b/src/hip_device.cpp @@ -160,6 +160,7 @@ hipError_t hipSetDevice(int deviceId) */ hipError_t hipDeviceSynchronize(void) { + HIP_INIT_API(1); return ihipSynchronize(); }