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
e3022fa8
Unverified
Commit
e3022fa8
authored
Jul 14, 2025
by
PanZezhong1725
Committed by
GitHub
Jul 14, 2025
Browse files
Merge pull request #326 from YdrMaster/main
issue/291/fix: 改正 conv 中的编译错误和 xmake 中的一些问题
parents
13f402e8
1d8d9623
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
16 deletions
+16
-16
src/infiniop/ops/conv/nvidia/conv_nvidia.cu
src/infiniop/ops/conv/nvidia/conv_nvidia.cu
+6
-6
xmake.lua
xmake.lua
+6
-6
xmake/nvidia.lua
xmake/nvidia.lua
+4
-4
No files found.
src/infiniop/ops/conv/nvidia/conv_nvidia.cu
View file @
e3022fa8
...
...
@@ -262,12 +262,12 @@ public:
workspace_size
(
other
.
workspace_size
)
// clang-format off
#ifdef ENABLE_CUDNN_API
,
x_desc
(
other
.
x_desc
)
,
,
y_desc
(
other
.
y_desc
)
,
,
w_desc
(
other
.
w_desc
)
,
,
b_desc
(
other
.
b_desc
)
,
,
act_desc
(
other
.
act_desc
)
,
,
conv_desc
(
other
.
conv_desc
)
,
,
x_desc
(
other
.
x_desc
)
,
y_desc
(
other
.
y_desc
)
,
w_desc
(
other
.
w_desc
)
,
b_desc
(
other
.
b_desc
)
,
act_desc
(
other
.
act_desc
)
,
conv_desc
(
other
.
conv_desc
)
,
algo
(
other
.
algo
)
#endif
// clang-format on
...
...
xmake.lua
View file @
e3022fa8
...
...
@@ -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 @
e3022fa8
...
...
@@ -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