From d04938a6ada79dc7c489d02743d4e9d4017fc025 Mon Sep 17 00:00:00 2001 From: Jeremy Newton Date: Mon, 9 May 2022 13:53:49 -0400 Subject: [PATCH] SWDEV-336248 - Use public icd header HIP uses icd_dispatch.h, which is not a public header. Using the public CL/cl_icd.h removes inclusion of the private header. This allows compiling HIP without relying on OCL ICD source, which makes distributing a standalone ROCclr easier. For WIN32, a few other headers are required. Signed-off-by: Jeremy Newton Change-Id: I0cab173b9753c5b0ab3be9222aa8bb0545cdeaab --- hipamd/src/fixme.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/hipamd/src/fixme.cpp b/hipamd/src/fixme.cpp index 3b6b55bcde..3560eff8c1 100644 --- a/hipamd/src/fixme.cpp +++ b/hipamd/src/fixme.cpp @@ -19,7 +19,15 @@ THE SOFTWARE. */ #include "vdi_common.hpp" -#include +#ifdef _WIN32 +#include +#include +#include +#include +#include +#include +#endif +#include cl_icd_dispatch amd::ICDDispatchedObject::icdVendorDispatch_[] = {0}; amd::PlatformIDS amd::PlatformID::Platform = {amd::ICDDispatchedObject::icdVendorDispatch_};