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
1fa56298
Commit
1fa56298
authored
Jan 26, 2026
by
wooway777
Browse files
demo131 - patch lua flags and includes
parent
7a18d241
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
10 deletions
+8
-10
src/infiniop/ops/flash_attention/ninetoothed/build.py
src/infiniop/ops/flash_attention/ninetoothed/build.py
+5
-7
xmake/hygon.lua
xmake/hygon.lua
+1
-1
xmake/iluvatar.lua
xmake/iluvatar.lua
+1
-1
xmake/metax.lua
xmake/metax.lua
+1
-1
No files found.
src/infiniop/ops/flash_attention/ninetoothed/build.py
View file @
1fa56298
...
@@ -6,16 +6,14 @@ import infiniop.ninetoothed.build
...
@@ -6,16 +6,14 @@ import infiniop.ninetoothed.build
import
torch
import
torch
import
os
def
build
():
if
torch
.
cuda
.
is_available
():
def
build
():
device_count
=
torch
.
cuda
.
device_count
()
for
i
in
range
(
device_count
):
device_name
=
torch
.
cuda
.
get_device_name
(
i
).
lower
()
if
"metax"
in
device_name
:
env_vars_to_check
=
[
"MACA_HOME"
,
"MACA_PATH"
,
"MACA_ROOT"
]
return
if
any
(
var
in
os
.
environ
for
var
in
env_vars_to_check
):
return
with_kv_cache_values
=
(
0
,)
with_kv_cache_values
=
(
0
,)
emb_dim_values
=
(
16
,
32
,
64
,
128
,
256
)
emb_dim_values
=
(
16
,
32
,
64
,
128
,
256
)
...
...
xmake/hygon.lua
View file @
1fa56298
...
@@ -77,7 +77,7 @@ target("infiniop-hygon")
...
@@ -77,7 +77,7 @@ target("infiniop-hygon")
add_files
(
"../src/infiniop/ops/swiglu/nvidia/*.cu"
)
add_files
(
"../src/infiniop/ops/swiglu/nvidia/*.cu"
)
if
has_config
(
"ninetoothed"
)
then
if
has_config
(
"ninetoothed"
)
then
add_files
(
"../build/ninetoothed/*.c"
,
{
cxxflags
=
{
"-Wno-return-type"
}})
add_files
(
"../build/ninetoothed/*.c"
,
"../build/ninetoothed/*.cpp"
,
{
cxxflags
=
{
"-Wno-return-type"
}})
end
end
target_end
()
target_end
()
...
...
xmake/iluvatar.lua
View file @
1fa56298
...
@@ -58,7 +58,7 @@ target("infiniop-iluvatar")
...
@@ -58,7 +58,7 @@ target("infiniop-iluvatar")
add_files
(
"../src/infiniop/ops/dequantize_awq/iluvatar/*.cu"
)
add_files
(
"../src/infiniop/ops/dequantize_awq/iluvatar/*.cu"
)
if
has_config
(
"ninetoothed"
)
then
if
has_config
(
"ninetoothed"
)
then
add_files
(
"../build/ninetoothed/*.c"
,
{
cxxflags
=
{
"-Wno-return-type"
}})
add_files
(
"../build/ninetoothed/*.c"
,
"../build/ninetoothed/*.cpp"
,
{
cxxflags
=
{
"-Wno-return-type"
}})
end
end
target_end
()
target_end
()
...
...
xmake/metax.lua
View file @
1fa56298
...
@@ -54,7 +54,7 @@ target("infiniop-metax")
...
@@ -54,7 +54,7 @@ target("infiniop-metax")
if
has_config
(
"ninetoothed"
)
then
if
has_config
(
"ninetoothed"
)
then
add_includedirs
(
MACA_ROOT
..
"/include/mcr"
)
add_includedirs
(
MACA_ROOT
..
"/include/mcr"
)
add_files
(
"../build/ninetoothed/*.c"
,
{
add_files
(
"../build/ninetoothed/*.c"
,
"../build/ninetoothed/*.cpp"
,
{
cxflags
=
{
cxflags
=
{
"-include stdlib.h"
,
"-include stdlib.h"
,
"-Wno-return-type"
,
"-Wno-return-type"
,
...
...
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