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
1d8d9623
Commit
1d8d9623
authored
Jul 14, 2025
by
YdrMaster
Browse files
issue/291/style: xmake target 中 cuda 改为 nvidia
Signed-off-by:
YdrMaster
<
ydrml@hotmail.com
>
parent
fff442ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
xmake.lua
xmake.lua
+6
-6
xmake/nvidia.lua
xmake/nvidia.lua
+4
-4
No files found.
xmake.lua
View file @
1d8d9623
...
...
@@ -49,7 +49,7 @@ option_end()
if
has_config
(
"nv-gpu"
)
then
add_defines
(
"ENABLE_NVIDIA_API"
)
includes
(
"xmake/
cud
a.lua"
)
includes
(
"xmake/
nvidi
a.lua"
)
end
option
(
"cudnn"
)
...
...
@@ -187,7 +187,7 @@ target("infinirt")
add_deps
(
"infinirt-cpu"
)
end
if
has_config
(
"nv-gpu"
)
then
add_deps
(
"infinirt-
cud
a"
)
add_deps
(
"infinirt-
nvidi
a"
)
end
if
has_config
(
"cambricon-mlu"
)
then
add_deps
(
"infinirt-cambricon"
)
...
...
@@ -221,7 +221,7 @@ target("infiniop")
add_deps
(
"infiniop-cpu"
)
end
if
has_config
(
"nv-gpu"
)
then
add_deps
(
"infiniop-
cud
a"
)
add_deps
(
"infiniop-
nvidi
a"
)
end
if
has_config
(
"iluvatar-gpu"
)
then
add_deps
(
"infiniop-iluvatar"
)
...
...
@@ -235,9 +235,9 @@ target("infiniop")
)
add_shflags
(
"-s"
,
"-shared"
,
"-fPIC"
)
add_links
(
"cublas"
,
"cudnn"
,
"cudadevrt"
,
"cudart_static"
,
"rt"
,
"pthread"
,
"dl"
)
-- Using -linfiniop-
cud
a will fail, manually link the target using full path
-- Using -linfiniop-
nvidi
a will fail, manually link the target using full path
add_deps
(
"nv-gpu"
,
{
inherit
=
false
})
add_links
(
builddir
..
"/libinfiniop-
cud
a.a"
)
add_links
(
builddir
..
"/libinfiniop-
nvidi
a.a"
)
set_toolchains
(
"sugon-dcu-linker"
)
end
...
...
@@ -273,7 +273,7 @@ target("infiniccl")
add_deps
(
"infinirt"
)
if
has_config
(
"nv-gpu"
)
then
add_deps
(
"infiniccl-
cud
a"
)
add_deps
(
"infiniccl-
nvidi
a"
)
end
if
has_config
(
"ascend-npu"
)
then
add_deps
(
"infiniccl-ascend"
)
...
...
xmake/
cud
a.lua
→
xmake/
nvidi
a.lua
View file @
1d8d9623
...
...
@@ -3,7 +3,7 @@ if CUDNN_ROOT ~= nil then
add_includedirs
(
CUDNN_ROOT
..
"/include"
)
end
target
(
"infiniop-
cud
a"
)
target
(
"infiniop-
nvidi
a"
)
set_kind
(
"static"
)
add_deps
(
"infini-utils"
)
on_install
(
function
(
target
)
end
)
...
...
@@ -46,10 +46,10 @@ target("infiniop-cuda")
add_cuflags
(
"-Xcompiler=-Wno-error=deprecated-declarations"
)
set_languages
(
"cxx17"
)
add_files
(
"../src/infiniop/devices/nvidia/*.cu"
,
"../src/infiniop/ops/*/cuda/*.cu"
,
"../src/infiniop/ops/*/nvidia/*.cu"
,
"../build/ninetoothed/*.c"
)
add_files
(
"../src/infiniop/devices/nvidia/*.cu"
,
"../src/infiniop/ops/*/nvidia/*.cu"
,
"../build/ninetoothed/*.c"
)
target_end
()
target
(
"infinirt-
cud
a"
)
target
(
"infinirt-
nvidi
a"
)
set_kind
(
"static"
)
add_deps
(
"infini-utils"
)
on_install
(
function
(
target
)
end
)
...
...
@@ -71,7 +71,7 @@ target("infinirt-cuda")
add_files
(
"../src/infinirt/cuda/*.cu"
)
target_end
()
target
(
"infiniccl-
cud
a"
)
target
(
"infiniccl-
nvidi
a"
)
set_kind
(
"static"
)
add_deps
(
"infinirt"
)
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