Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jerrrrry
infinicore
Commits
037140c0
Unverified
Commit
037140c0
authored
Mar 10, 2026
by
thatPepe
Committed by
GitHub
Mar 10, 2026
Browse files
Merge pull request #1067 from InfiniTensor/issue/1033_fix
skip build flash attn target when disabled
parents
a8ea2306
505e9b69
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
xmake.lua
xmake.lua
+1
-1
xmake/nvidia.lua
xmake/nvidia.lua
+1
-0
No files found.
xmake.lua
View file @
037140c0
...
...
@@ -461,7 +461,7 @@ target("infinicore_cpp_api")
add_linkdirs
(
INFINI_ROOT
..
"/lib"
)
add_links
(
"infiniop"
,
"infinirt"
,
"infiniccl"
)
if
get_config
(
"flash-attn"
)
~=
""
then
if
get_config
(
"flash-attn"
)
~=
""
and
get_config
(
"flash-attn"
)
~=
nil
then
add_installfiles
(
"(builddir)/$(plat)/$(arch)/$(mode)/flash-attn*.so"
,
{
prefixdir
=
"lib"
})
if
has_config
(
"nv-gpu"
)
then
add_deps
(
"flash-attn-nvidia"
)
...
...
xmake/nvidia.lua
View file @
037140c0
...
...
@@ -181,6 +181,7 @@ target("flash-attn-nvidia")
before_build
(
function
(
target
)
print
(
"Flash Attention not available, skipping flash-attn-nvidia build"
)
end
)
on_build
(
function
(
target
)
end
)
end
on_install
(
function
(
target
)
end
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment