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
3b5afffe
Unverified
Commit
3b5afffe
authored
Jan 07, 2026
by
Haojie Wang
Committed by
GitHub
Jan 07, 2026
Browse files
Merge pull request #842 from gongchensu/Issue/791
Issue/791 增加add_rms_norm融合算子
parents
2d9d5c30
7712471f
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
test/infiniop/libinfiniop/op_register.py
test/infiniop/libinfiniop/op_register.py
+37
-0
No files found.
test/infiniop/libinfiniop/op_register.py
View file @
3b5afffe
...
@@ -383,6 +383,43 @@ def rms_norm_(lib):
...
@@ -383,6 +383,43 @@ def rms_norm_(lib):
]
]
@
OpRegister
.
operator
def
add_rms_norm_
(
lib
):
lib
.
infiniopCreateAddRMSNormDescriptor
.
restype
=
c_int32
lib
.
infiniopCreateAddRMSNormDescriptor
.
argtypes
=
[
infiniopHandle_t
,
POINTER
(
infiniopOperatorDescriptor_t
),
infiniopTensorDescriptor_t
,
infiniopTensorDescriptor_t
,
infiniopTensorDescriptor_t
,
infiniopTensorDescriptor_t
,
c_float
,
]
lib
.
infiniopGetAddRMSNormWorkspaceSize
.
restype
=
c_int32
lib
.
infiniopGetAddRMSNormWorkspaceSize
.
argtypes
=
[
infiniopOperatorDescriptor_t
,
POINTER
(
c_size_t
),
]
lib
.
infiniopAddRMSNorm
.
restype
=
c_int32
lib
.
infiniopAddRMSNorm
.
argtypes
=
[
infiniopOperatorDescriptor_t
,
c_void_p
,
c_size_t
,
c_void_p
,
c_void_p
,
c_void_p
,
c_void_p
,
c_void_p
,
]
lib
.
infiniopDestroyAddRMSNormDescriptor
.
restype
=
c_int32
lib
.
infiniopDestroyAddRMSNormDescriptor
.
argtypes
=
[
infiniopOperatorDescriptor_t
,
]
@
OpRegister
.
operator
@
OpRegister
.
operator
def
rope_
(
lib
):
def
rope_
(
lib
):
lib
.
infiniopCreateRoPEDescriptor
.
restype
=
c_int32
lib
.
infiniopCreateRoPEDescriptor
.
restype
=
c_int32
...
...
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