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
infinilm
Commits
359c0db9
Unverified
Commit
359c0db9
authored
Jul 16, 2025
by
PanZezhong1725
Committed by
GitHub
Jul 16, 2025
Browse files
Merge pull request #20 from InfiniTensor/iluvatar
support iluvatar device type
parents
f59c7bf5
cecc9b5d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
scripts/jiuge.py
scripts/jiuge.py
+2
-0
scripts/libinfinicore_infer.py
scripts/libinfinicore_infer.py
+1
-0
No files found.
scripts/jiuge.py
View file @
359c0db9
...
...
@@ -602,6 +602,8 @@ def test():
device_type
=
DeviceType
.
DEVICE_TYPE_METAX
elif
sys
.
argv
[
1
]
==
"--moore"
:
device_type
=
DeviceType
.
DEVICE_TYPE_MOORE
elif
sys
.
argv
[
1
]
==
"--iluvatar"
:
device_type
=
DeviceType
.
DEVICE_TYPE_ILUVATAR
else
:
print
(
"Usage: python jiuge.py [--cpu | --nvidia| --cambricon | --ascend | --metax | --moore] <path/to/model_dir> [n_device]"
...
...
scripts/libinfinicore_infer.py
View file @
359c0db9
...
...
@@ -33,6 +33,7 @@ class DeviceType(ctypes.c_int):
DEVICE_TYPE_ASCEND
=
3
DEVICE_TYPE_METAX
=
4
DEVICE_TYPE_MOORE
=
5
DEVICE_TYPE_ILUVATAR
=
6
class
JiugeMetaCStruct
(
ctypes
.
Structure
):
...
...
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