From af0d837bffec24735e603c259cc8ac6cc22616ee Mon Sep 17 00:00:00 2001 From: zhushuang Date: Thu, 27 Aug 2026 14:41:41 +0800 Subject: [PATCH] issue/1539 - fix: retain torch_python for ATen builds with moore gpu --- xmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake.lua b/xmake.lua index b3d93889f..568410287 100644 --- a/xmake.lua +++ b/xmake.lua @@ -1021,7 +1021,7 @@ target("infinicore_cpp_api") end) -- Moore mate: force link torch_python to bypass --as-needed - if has_config("moore-gpu") and has_config("aten") and has_config("flash-attn") then + if has_config("moore-gpu") and has_config("aten") then before_link(function (target) local torch_dir = os.iorunv(PYTHON, {"-c", "import torch, os; print(os.path.dirname(torch.__file__))"}):trim()