diff --git a/openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h b/openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h --- a/openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h +++ b/openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h @@ -18,6 +18,8 @@ #include "amdgcn_interface.h" +#include +#include #include #include diff --git a/openmp/libomptarget/deviceRTLs/common/debug.h b/openmp/libomptarget/deviceRTLs/common/debug.h --- a/openmp/libomptarget/deviceRTLs/common/debug.h +++ b/openmp/libomptarget/deviceRTLs/common/debug.h @@ -127,7 +127,6 @@ //////////////////////////////////////////////////////////////////////////////// #if OMPTARGET_NVPTX_DEBUG || OMPTARGET_NVPTX_TEST || OMPTARGET_NVPTX_WARNING -#include #include "common/support.h" template @@ -138,7 +137,6 @@ #endif #if OMPTARGET_NVPTX_TEST -#include template NOINLINE static void check(bool cond, const char *fmt, diff --git a/openmp/libomptarget/deviceRTLs/common/omptarget.h b/openmp/libomptarget/deviceRTLs/common/omptarget.h --- a/openmp/libomptarget/deviceRTLs/common/omptarget.h +++ b/openmp/libomptarget/deviceRTLs/common/omptarget.h @@ -14,11 +14,6 @@ #ifndef OMPTARGET_H #define OMPTARGET_H -// std includes -#include -#include - -// local includes #include "target_impl.h" #include "common/debug.h" // debug #include "interface.h" // interfaces with omp, compiler, and user diff --git a/openmp/libomptarget/deviceRTLs/common/src/data_sharing.cu b/openmp/libomptarget/deviceRTLs/common/src/data_sharing.cu --- a/openmp/libomptarget/deviceRTLs/common/src/data_sharing.cu +++ b/openmp/libomptarget/deviceRTLs/common/src/data_sharing.cu @@ -11,7 +11,6 @@ //===----------------------------------------------------------------------===// #include "common/omptarget.h" #include "target_impl.h" -#include // Return true if this is the master thread. INLINE static bool IsMasterThread(bool isSPMDExecutionMode) { diff --git a/openmp/libomptarget/deviceRTLs/nvptx/src/target_impl.h b/openmp/libomptarget/deviceRTLs/nvptx/src/target_impl.h --- a/openmp/libomptarget/deviceRTLs/nvptx/src/target_impl.h +++ b/openmp/libomptarget/deviceRTLs/nvptx/src/target_impl.h @@ -12,7 +12,10 @@ #ifndef _TARGET_IMPL_H_ #define _TARGET_IMPL_H_ +#include #include +#include +#include #include #include "nvptx_interface.h"