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