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
00c30a4a
"superbench/benchmarks/docker_benchmarks/fambench.py" did not exist on "9f56b2198f8731338c3b6873dbc362b0b4093f49"
Unverified
Commit
00c30a4a
authored
Aug 20, 2025
by
PanZezhong1725
Committed by
GitHub
Aug 20, 2025
Browse files
Merge branch 'main' into issue/240
parents
724d9692
d4b03cf7
Changes
25
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
src/infinirt/moore/infinirt_moore.cc
src/infinirt/moore/infinirt_moore.cc
+1
-1
src/infinirt/moore/infinirt_moore.h
src/infinirt/moore/infinirt_moore.h
+0
-0
test/infiniop/libinfiniop/utils.py
test/infiniop/libinfiniop/utils.py
+1
-1
xmake.lua
xmake.lua
+1
-1
xmake/moore.lua
xmake/moore.lua
+3
-3
No files found.
src/infinirt/m
usa
/infinirt_m
usa
.cc
→
src/infinirt/m
oore
/infinirt_m
oore
.cc
View file @
00c30a4a
#include "infinirt_m
usa
.h"
#include "infinirt_m
oore
.h"
#include "../../utils.h"
#include "../../utils.h"
#include <musa_runtime.h>
#include <musa_runtime.h>
#include <musa_runtime_api.h>
#include <musa_runtime_api.h>
...
...
src/infinirt/m
usa
/infinirt_m
usa
.h
→
src/infinirt/m
oore
/infinirt_m
oore
.h
View file @
00c30a4a
File moved
test/infiniop/libinfiniop/utils.py
View file @
00c30a4a
...
@@ -608,6 +608,6 @@ def get_sync_func(device):
...
@@ -608,6 +608,6 @@ def get_sync_func(device):
if
device
==
InfiniDeviceEnum
.
CPU
or
device
==
InfiniDeviceEnum
.
CAMBRICON
:
if
device
==
InfiniDeviceEnum
.
CPU
or
device
==
InfiniDeviceEnum
.
CAMBRICON
:
sync
=
None
sync
=
None
else
:
else
:
sync
=
getattr
(
torch
,
infiniDeviceEnum_str
_map
[
device
]).
synchronize
sync
=
getattr
(
torch
,
torch_device
_map
[
device
]).
synchronize
return
sync
return
sync
xmake.lua
View file @
00c30a4a
...
@@ -119,7 +119,7 @@ option_end()
...
@@ -119,7 +119,7 @@ option_end()
if
has_config
(
"moore-gpu"
)
then
if
has_config
(
"moore-gpu"
)
then
add_defines
(
"ENABLE_MOORE_API"
)
add_defines
(
"ENABLE_MOORE_API"
)
includes
(
"xmake/m
usa
.lua"
)
includes
(
"xmake/m
oore
.lua"
)
end
end
-- 海光
-- 海光
...
...
xmake/m
usa
.lua
→
xmake/m
oore
.lua
View file @
00c30a4a
...
@@ -42,8 +42,8 @@ target("infiniop-moore")
...
@@ -42,8 +42,8 @@ target("infiniop-moore")
set_languages
(
"cxx17"
)
set_languages
(
"cxx17"
)
set_warnings
(
"all"
,
"error"
)
set_warnings
(
"all"
,
"error"
)
add_cxflags
(
"-lstdc++"
,
"-fPIC"
,
"-Wno-comment"
)
add_cxflags
(
"-lstdc++"
,
"-fPIC"
,
"-Wno-comment"
)
add_files
(
"../src/infiniop/devices/m
usa
/*.cc"
)
add_files
(
"../src/infiniop/devices/m
oore
/*.cc"
)
add_files
(
"../src/infiniop/ops/*/m
usa
/*.mu"
,
{
rule
=
"mu"
})
add_files
(
"../src/infiniop/ops/*/m
oore
/*.mu"
,
{
rule
=
"mu"
})
target_end
()
target_end
()
target
(
"infinirt-moore"
)
target
(
"infinirt-moore"
)
...
@@ -53,5 +53,5 @@ target("infinirt-moore")
...
@@ -53,5 +53,5 @@ target("infinirt-moore")
add_deps
(
"infini-utils"
)
add_deps
(
"infini-utils"
)
set_warnings
(
"all"
,
"error"
)
set_warnings
(
"all"
,
"error"
)
add_cxflags
(
"-lstdc++"
,
"-fPIC"
)
add_cxflags
(
"-lstdc++"
,
"-fPIC"
)
add_files
(
"../src/infinirt/m
usa
/*.cc"
)
add_files
(
"../src/infinirt/m
oore
/*.cc"
)
target_end
()
target_end
()
Prev
1
2
Next
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