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
6892a7f5
Commit
6892a7f5
authored
Sep 09, 2025
by
xgqdut2016
Committed by
zhangyue
Sep 17, 2025
Browse files
issue/436: support kunlun rope U32
parent
badccb86
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
src/infiniop/ops/rope/kunlun/rope_kunlun.xpu
src/infiniop/ops/rope/kunlun/rope_kunlun.xpu
+16
-1
No files found.
src/infiniop/ops/rope/kunlun/rope_kunlun.xpu
View file @
6892a7f5
...
@@ -169,7 +169,22 @@ infiniStatus_t Descriptor::calculate(
...
@@ -169,7 +169,22 @@ infiniStatus_t Descriptor::calculate(
default:
default:
return INFINI_STATUS_BAD_TENSOR_DTYPE;
return INFINI_STATUS_BAD_TENSOR_DTYPE;
}
}
} else {
} else if (_info.pos_type == INFINI_DTYPE_U32) {
switch (_info.data_type) {
case INFINI_DTYPE_F32:
LAUNCH_KERNEL(float, uint32_t);
return INFINI_STATUS_SUCCESS;
case INFINI_DTYPE_F16:
LAUNCH_KERNEL(half, uint32_t);
return INFINI_STATUS_SUCCESS;
case INFINI_DTYPE_BF16:
LAUNCH_KERNEL(bfloat16_t, uint32_t);
return INFINI_STATUS_SUCCESS;
default:
return INFINI_STATUS_BAD_TENSOR_DTYPE;
}
}
else {
return INFINI_STATUS_BAD_TENSOR_DTYPE;
return INFINI_STATUS_BAD_TENSOR_DTYPE;
}
}
}
}
...
...
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