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
ce10d777
Commit
ce10d777
authored
Nov 28, 2025
by
zhangyue
Browse files
issue/676: fix format
parent
74aeb4f4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
src/infiniop/sort/kunlun/heap.h
src/infiniop/sort/kunlun/heap.h
+4
-2
test/infiniop/topkrouter.py
test/infiniop/topkrouter.py
+2
-1
No files found.
src/infiniop/sort/kunlun/heap.h
View file @
ce10d777
...
...
@@ -215,7 +215,8 @@ __device__ void primitive_cast(const float *x, int *y, int len) {
float32x16_t
Y
=
vload_lm_float32x16
(
x
);
__asm__
__volatile__
(
"vfloat2fix.rz vr0, %0
\t\n
"
"vstore_mask16.mz vr0{mr1}, 0(%1)"
::
"v"
(
Y
),
"r"
(
y
)
:
"vr0"
);
"r"
(
y
)
:
"vr0"
);
x
+=
16
;
y
+=
16
;
}
...
...
@@ -227,7 +228,8 @@ __device__ void primitive_cast(const int *x, float *y, int len) {
int32x16_t
Y
=
vload_lm_int32x16
(
x
);
__asm__
__volatile__
(
"vfix2float.rn vr0, %0
\t\n
"
"vstore_mask16.mz vr0{mr1}, 0(%1)"
::
"v"
(
Y
),
"r"
(
y
)
:
"vr0"
);
"r"
(
y
)
:
"vr0"
);
x
+=
16
;
y
+=
16
;
}
...
...
test/infiniop/topkrouter.py
View file @
ce10d777
...
...
@@ -33,7 +33,8 @@ _TEST_CASES_ = [
# w (weight) types
# Note: 'None' means the same as input dtype
_X_DTYPES
=
[
InfiniDtype
.
F32
,
InfiniDtype
.
BF16
,
InfiniDtype
.
F16
]
# _X_DTYPES = [InfiniDtype.F32, InfiniDtype.BF16, InfiniDtype.F16]
_X_DTYPES
=
[]
# CPU CI
# x types used for testing
_VALUE_DTYPES
=
[
InfiniDtype
.
F32
]
...
...
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