From d6118d44cef00bdc2f9a1eca373a54e930af5380 Mon Sep 17 00:00:00 2001
From: foreman
Date: Fri, 4 May 2018 15:12:48 -0400
Subject: [PATCH] P4 to Git Change 1550526 by cpaquot@cpaquot-ocl-lc-lnx on
2018/05/04 15:00:44
SWDEV-145570 - [HIP] Missing HIP_INIT_API macro in hipDeviceSynchronize.
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/hip/hip_device_runtime.cpp#9 edit
[ROCm/hip commit: 65b557ecce7fbf3bdd763a08eb5814507f3d768a]
---
projects/hip/api/hip/hip_device_runtime.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/projects/hip/api/hip/hip_device_runtime.cpp b/projects/hip/api/hip/hip_device_runtime.cpp
index c7a4d4913d..c84abe02da 100644
--- a/projects/hip/api/hip/hip_device_runtime.cpp
+++ b/projects/hip/api/hip/hip_device_runtime.cpp
@@ -375,6 +375,8 @@ hipError_t hipDeviceSetSharedMemConfig ( hipSharedMemConfig config ) {
}
hipError_t hipDeviceSynchronize ( void ) {
+ HIP_INIT_API();
+
amd::HostQueue* queue = hip::getNullStream();
if (!queue) {