From bc4c7d26af9c93a64b372eeb7b20c6a5ceb1de36 Mon Sep 17 00:00:00 2001 From: joye Date: Wed, 21 May 2025 16:52:58 +0800 Subject: [PATCH] avoid compiling device functions when compile host --- include/ck_tile/core/tensor/tile_window.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/ck_tile/core/tensor/tile_window.hpp b/include/ck_tile/core/tensor/tile_window.hpp index db31e2e1aa..f16b3a2cb0 100644 --- a/include/ck_tile/core/tensor/tile_window.hpp +++ b/include/ck_tile/core/tensor/tile_window.hpp @@ -544,6 +544,7 @@ struct tile_window_with_static_distribution number = {}, bool_constant = {}) const { +#if defined(__HIP_DEVICE_COMPILE__) using LdsTileWindow = remove_cvref_t; using LdsDataType = typename LdsTileWindow::DataType; #if defined(__gfx950__) @@ -648,6 +649,9 @@ struct tile_window_with_static_distribution } }); }); +#endif +#else + ignore = lds_tile; #endif }