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
e4bce369
Commit
e4bce369
authored
Jan 13, 2026
by
zhushuang
Browse files
issue/899 - fix: fix causal_softmax and rearrange bug
parent
eb89439d
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
114 additions
and
244 deletions
+114
-244
src/infiniop/ops/causal_softmax/moore/causal_softmax_kernel.h
...infiniop/ops/causal_softmax/moore/causal_softmax_kernel.h
+1
-1
src/infiniop/ops/rearrange/moore/rearrange_kernel.h
src/infiniop/ops/rearrange/moore/rearrange_kernel.h
+16
-50
src/infiniop/ops/rearrange/moore/rearrange_moore.mu
src/infiniop/ops/rearrange/moore/rearrange_moore.mu
+97
-193
No files found.
src/infiniop/ops/causal_softmax/moore/causal_softmax_kernel.h
View file @
e4bce369
...
@@ -28,7 +28,7 @@ __device__ void causalSoftmaxKernel(
...
@@ -28,7 +28,7 @@ __device__ void causalSoftmaxKernel(
// 1 | * * * ... * * |
// 1 | * * * ... * * |
// 2 | * * * ... * * * |
// 2 | * * * ... * * * |
// height: 3 col_id->
// height: 3 col_id->
if
(
width
+
blockIdx
.
x
>=
threadIdx
.
x
+
height
)
{
if
(
width
+
blockIdx
.
x
>=
col
+
height
)
{
if
constexpr
(
std
::
is_same_v
<
Tdata
,
half
>
||
std
::
is_same_v
<
Tdata
,
cuda_bfloat16
>
)
{
if
constexpr
(
std
::
is_same_v
<
Tdata
,
half
>
||
std
::
is_same_v
<
Tdata
,
cuda_bfloat16
>
)
{
/*
/*
* MUSA does not support CUDA's native `hexp` function.
* MUSA does not support CUDA's native `hexp` function.
...
...
src/infiniop/ops/rearrange/moore/rearrange_kernel.h
View file @
e4bce369
This diff is collapsed.
Click to expand it.
src/infiniop/ops/rearrange/moore/rearrange_moore.mu
View file @
e4bce369
This diff is collapsed.
Click to expand it.
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