From 335e107f5f86efa0996e30ee9bb26af7e3c4e2f2 Mon Sep 17 00:00:00 2001 From: "Sun, Peng" Date: Wed, 5 Apr 2017 22:25:41 -0500 Subject: [PATCH] add extra guard to grid_launch_GGL header Change-Id: I120619c08ea2d084804fcb1639efbe6c4648dde9 --- hipamd/include/hip/hcc_detail/grid_launch_GGL.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hipamd/include/hip/hcc_detail/grid_launch_GGL.hpp b/hipamd/include/hip/hcc_detail/grid_launch_GGL.hpp index 4fd7c3ff3a..1d765dfc48 100644 --- a/hipamd/include/hip/hcc_detail/grid_launch_GGL.hpp +++ b/hipamd/include/hip/hcc_detail/grid_launch_GGL.hpp @@ -21,6 +21,7 @@ THE SOFTWARE. */ #pragma once +#if GENERIC_GRID_LAUNCH == 1 #include "concepts.hpp" #include "helpers.hpp" @@ -851,3 +852,4 @@ namespace hip_impl ##__VA_ARGS__);\ } } +#endif //GENERIC_GRID_LAUNCH