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
e9b1a513
Commit
e9b1a513
authored
Mar 03, 2025
by
PanZezhong
Browse files
issue/78 修改编译流程
parent
086a8751
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
6 deletions
+10
-6
xmake.lua
xmake.lua
+1
-2
xmake/ascend.lua
xmake/ascend.lua
+1
-1
xmake/bang.lua
xmake/bang.lua
+1
-0
xmake/cpu.lua
xmake/cpu.lua
+4
-2
xmake/cuda.lua
xmake/cuda.lua
+2
-0
xmake/kunlun.lua
xmake/kunlun.lua
+1
-1
No files found.
xmake.lua
View file @
e9b1a513
...
@@ -114,13 +114,13 @@ end
...
@@ -114,13 +114,13 @@ end
target
(
"infini-utils"
)
target
(
"infini-utils"
)
set_kind
(
"static"
)
set_kind
(
"static"
)
on_install
(
function
(
target
)
end
)
set_languages
(
"cxx17"
)
set_languages
(
"cxx17"
)
add_files
(
"src/utils/*.cc"
)
add_files
(
"src/utils/*.cc"
)
target_end
()
target_end
()
target
(
"infiniop"
)
target
(
"infiniop"
)
set_kind
(
"shared"
)
set_kind
(
"shared"
)
add_deps
(
"infini-utils"
)
if
has_config
(
"cpu"
)
then
if
has_config
(
"cpu"
)
then
add_deps
(
"infiniop-cpu"
)
add_deps
(
"infiniop-cpu"
)
end
end
...
@@ -168,7 +168,6 @@ target_end()
...
@@ -168,7 +168,6 @@ target_end()
target
(
"infinirt"
)
target
(
"infinirt"
)
set_kind
(
"shared"
)
set_kind
(
"shared"
)
add_deps
(
"infini-utils"
)
if
has_config
(
"cpu"
)
then
if
has_config
(
"cpu"
)
then
add_deps
(
"infinirt-cpu"
)
add_deps
(
"infinirt-cpu"
)
end
end
...
...
xmake/ascend.lua
View file @
e9b1a513
...
@@ -39,8 +39,8 @@ rule("ascend-kernels")
...
@@ -39,8 +39,8 @@ rule("ascend-kernels")
rule_end
()
rule_end
()
target
(
"infiniop-ascend"
)
target
(
"infiniop-ascend"
)
-- Other configs
set_kind
(
"static"
)
set_kind
(
"static"
)
add_deps
(
"infini-utils"
)
set_languages
(
"cxx17"
)
set_languages
(
"cxx17"
)
on_install
(
function
(
target
)
end
)
on_install
(
function
(
target
)
end
)
-- Add files
-- Add files
...
...
xmake/bang.lua
View file @
e9b1a513
...
@@ -38,6 +38,7 @@ local src_dir = path.join(os.projectdir(), "src", "infiniop")
...
@@ -38,6 +38,7 @@ local src_dir = path.join(os.projectdir(), "src", "infiniop")
target
(
"infiniop-cambricon"
)
target
(
"infiniop-cambricon"
)
set_kind
(
"static"
)
set_kind
(
"static"
)
add_deps
(
"infini-utils"
)
on_install
(
function
(
target
)
end
)
on_install
(
function
(
target
)
end
)
set_languages
(
"cxx17"
)
set_languages
(
"cxx17"
)
add_files
(
src_dir
..
"/devices/bang/*.cc"
,
src_dir
..
"/ops/*/bang/*.cc"
)
add_files
(
src_dir
..
"/devices/bang/*.cc"
,
src_dir
..
"/ops/*/bang/*.cc"
)
...
...
xmake/cpu.lua
View file @
e9b1a513
target
(
"infiniop-cpu"
)
target
(
"infiniop-cpu"
)
on_install
(
function
(
target
)
end
)
set_kind
(
"static"
)
set_kind
(
"static"
)
add_deps
(
"infini-utils"
)
on_install
(
function
(
target
)
end
)
set_warnings
(
"all"
,
"error"
)
set_warnings
(
"all"
,
"error"
)
...
@@ -17,8 +18,9 @@ target("infiniop-cpu")
...
@@ -17,8 +18,9 @@ target("infiniop-cpu")
target_end
()
target_end
()
target
(
"infinirt-cpu"
)
target
(
"infinirt-cpu"
)
on_install
(
function
(
target
)
end
)
set_kind
(
"static"
)
set_kind
(
"static"
)
add_deps
(
"infini-utils"
)
on_install
(
function
(
target
)
end
)
set_warnings
(
"all"
,
"error"
)
set_warnings
(
"all"
,
"error"
)
...
...
xmake/cuda.lua
View file @
e9b1a513
...
@@ -10,6 +10,7 @@ end
...
@@ -10,6 +10,7 @@ end
target
(
"infiniop-cuda"
)
target
(
"infiniop-cuda"
)
set_kind
(
"static"
)
set_kind
(
"static"
)
add_deps
(
"infini-utils"
)
on_install
(
function
(
target
)
end
)
on_install
(
function
(
target
)
end
)
set_policy
(
"build.cuda.devlink"
,
true
)
set_policy
(
"build.cuda.devlink"
,
true
)
...
@@ -37,6 +38,7 @@ target_end()
...
@@ -37,6 +38,7 @@ target_end()
target
(
"infinirt-cuda"
)
target
(
"infinirt-cuda"
)
set_kind
(
"static"
)
set_kind
(
"static"
)
add_deps
(
"infini-utils"
)
on_install
(
function
(
target
)
end
)
on_install
(
function
(
target
)
end
)
set_policy
(
"build.cuda.devlink"
,
true
)
set_policy
(
"build.cuda.devlink"
,
true
)
...
...
xmake/kunlun.lua
View file @
e9b1a513
...
@@ -8,8 +8,8 @@ add_links("xpurt")
...
@@ -8,8 +8,8 @@ add_links("xpurt")
add_links
(
"xpuapi"
)
add_links
(
"xpuapi"
)
target
(
"infiniop-kunlun"
)
target
(
"infiniop-kunlun"
)
-- Other configs
set_kind
(
"static"
)
set_kind
(
"static"
)
add_deps
(
"infini-utils"
)
set_languages
(
"cxx17"
)
set_languages
(
"cxx17"
)
on_install
(
function
(
target
)
end
)
on_install
(
function
(
target
)
end
)
-- Add files
-- Add files
...
...
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