From 1a8ea824972c99c0c78fef15e91170dc85ecf949 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 --- include/hip/hcc_detail/grid_launch_GGL.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/hip/hcc_detail/grid_launch_GGL.hpp b/include/hip/hcc_detail/grid_launch_GGL.hpp index 4fd7c3ff3a..1d765dfc48 100644 --- a/include/hip/hcc_detail/grid_launch_GGL.hpp +++ b/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